add results count to queries.