Teams

How do you find out what number the team is?
like if you make a custom gamemode?
is it just in order of the teams in the files?

player:Team()