Added a function to retrieve the top ten most used commands