refs #7037 remove limit from query when generating the count