sqlHelper.addGroupByClauseToExpression(editingContext, fetchSpec, sqlExpression);
if (inclusion == ERTag.Inclusion.ALL) {
sqlHelper.addHavingCountClauseToExpression(EOQualifier.QualifierOperatorEqual, tagNames.count(), sqlExpression);
}
int count = sqlHelper.rowCountForFetchSpecification(editingContext, fetchSpec);
return count;
}
/**
* Finds other tags that are related to the tags passed through the tags