I need to extrapolate from an attribute table the number of elements divided for categories in an automated way (it's not possible to count them manually cause the number is quite huge, about 10000). In the attribute table there are accomodations (hotels, B&Bs, hostels, etc..) for every municipality of my province and I need to get the number of these accomodations for every municipality.
What is the best way to do so?

