count(distinct ...) support