Measures: Count of count

I need to do this in cubejs
After getting a measure with count, count items there.

Simple measure count

1, 2
2, 2
3, 1
4, 2
5, 1
6, 7
7, 1

and i need this:

1, 3
2, 3
7, 1