Counts of search results
API to fetch counts of results for a boolean query. Similar to https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html.
Currently, we are setting page_size parameter to 1 and getting the count of results and further narrowing down/ filtering with more boolean queries.
This way multiple stages of credit consumption and filtering costs can be reduced.