count & sort

 

Execution time (seconds): ~2.580641