Added count query.