Amount of players on a server.

I am starting out programming and i am starting to learn the basics. i am using local values and if statements. i would like ot know if there would be anyway for my server to tell its self how many players are on a server. like with the max amount of players there are. game.MaxPlayers( ) this will tell me what the maxs players is. i was wondering if there was one for the amount of players on the server at that time

thanks for taking the time to read this.

#player.GetAll() will return amount of players including bots.

thanks