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

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.