How to setup conditions to count the number of male or female students