This question already has an answer here:
So I have folder with numerous different kinds of extensions. I want to know how I can quickly find the number of files in the folder, listed by their extension. So basically if my older has excel files, word files, and tar files. I want the result to show up mentioning that I have 3 excel files, 2 tar files, 2 word files etc.