count & sort

 

Execution time (seconds): ~3.400154