[COUNT] Fix bug when counting on a request with group_by