count & sort

 

Execution time (seconds): ~2.998876