How many people are in a basketball team?

I'm not sure if there is a real limit, but you should at least have 8 players just for subs and in case there is an injuries once i had a team and we only had 5 people.

We all had to play every single minute of the game, and we were all so tired. But again, there's not really a limit.