add groupBy/countBy