Does anyone know how to get facet counts in Strapi 4 (or 5)?

I have a list of blog categories on a page. I want to show the count of the number of posts in each category. This seems like a pretty standard thing. Does anyone know how I can do this using the REST API or other?

This topic has been created from a Discord post (1252345176521703537) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

You don’t, only with custom controllers or services

Thanks… do you have any documentation on working with controllers and services? I’m new to Strapi, but it sounds like this is more of a coding effort which is fine, but it would be great to learn a bit more on this part of Strapi.