A team of three people is ideal for most game jams; smaller teams make communication easier because there are fewer people to keep updated. However, if your game requires a lot of art or audio to be created, a larger team can work well - enabling you to get more work completed within the time limit.