Add count query.