BLK-42 Adds GroupBy functionality to counter block

Signed-off-by: Oren Leiman <oleiman@neutral.io>