How to increase variable for all the users?

Options
Hello,

I'm learning pun2 (I love it), and I want to increase the value for all the users, however I don't know how to do it (I tried with rpc and not working).

For example,
I have the variable int Player
And I want that every time a user is connected this increase the value, so I can identify who is the player=1, player=2 etc...

Every user should see this variable value.