Query TopN + Others

If field have 200 cardinality, what is the best way to get top 10 and OTHERS?

I want to draw only 11 lines on on the chart.
10 will be the top 10,
and 1 will be the all left values aggregated.

country, count
US, 18288
CA, 18000
JP, 14859
FR, 12848
CN, 11039
GB, 8678
IT, 7688
KR, 5646
MX, 3788
OTHERS, 18485 <-- left of 10 should be aggragated to one.

any good approach?

A TopN Query for the Top10 and then a time series for the others filtering out the top 10 from the result of the first query.