Count aggregation

Hi All,
I have model Service and Category. Services has many Categories.

I want to know which Categories used in my Services, and which one how many times?

How can I do it ?