Transparently split queries with count requests bigger than a certain threshold into smaller queries.