implemented Keen.io queries: sum and count