def num_teams