CB emit the according to order

Hi Team,

I am facing the problem in the emit in view. When I am trying to emit in descending sequence of the count I am available to do it. And if I want to get only top count let say top 5 descending order count in emit . How can I get it?
Please help me in this .