updated counts to generate counts even if result set is very, very large