What is an easy way to count the number of times a word appears in a file?
fgrep "word to be counted" filename|wc -w