Added count queries.