Count using rows returned by the query instead of keys in the #count hash