Hello all.
I post my workflow. First, 'group by' by count and sort descending; then i add a record. Then i apply a inner join by count and filtering when Rank <= 5. Finally i sort again descending and finish with the result. I post the image with workflow and results.