adding support for dictinctCount on groupBy queries