If you find that the number of results for a given search is not consistent with the facet counts being displayed, check whether you have the Remove Words if No Results (removeWordsIfNoResults) setting set to All optional.
If the query yielding inconsistent counts doesn't return any results, and removeWordsIfNoResults is set to All optional, a limitation in the way facet counts are calculated could be the cause.
Changing the remove words if no results setting should fix the issue, but changing this setting should be considered carefully as it will impact other areas of your search behaviour.
There are several scenarios that could lead to incorrect or inconsistent facet counts. If this article doesn't relate to your issue, please check our other guides on this topic:
Why don't my facet counts match the number of hits for attributes set to 'after distinct'?
Inconsistent facet counts with facetingAfterDistinct