To count number_of_types, group by type.

I think this is what was supposed to go here. Do I have that right?