Add multiple singular counters together to a Globalcounter

I made an udon script for a squad world. The udon scrip tracks how many squads the player has made and displays it on a counter. This system works fine now and is aswell synced in multiplayer.

Now I want to add a Global counter that adds together everybody’s squads.

My question is, how can I get the counter variables from each udon script for the calculation?