Counts not working in es.
And query search is on repository so the count for the same query must also be on the same repository