1. How many people are there on a team?

2. How many people are there in a team?
=============
Do we have to use 'on' or 'in'? Are both OK? What is the difference in meaning between them?

We usually say "on a team."

Why? I don't really know. English prepositions sometimes don't have precise definitions.