How many dorms are there and what is the total capacity for each gender?
select count(*), sum(student_capacity), gender from dorm group by gender