TEIID-2397 fix for count of a grouping column