Use searchIssueQuery() in countIssueGroupByLabels().