count & sort

 

Execution time (seconds): ~1.256979