totalCount and queryCount working