Counting Student Teams and Gender-Based Subsets