count occurrences of word in file linux

Shell
grep -wc "your_text" FileName
Source

Also in Shell: