Enhance performance for QueryBuilder subscriber

Remove the "order by" part of the query for counting