A GUI does make everything easy but what happens when you can only work from the command line and you want to check the number of times a word, phrase, or character occurs in a text file?
Source: Linux Today – How to Count Word Occurrences in a Text File