The grep command searches for words or string in each FILE. You need to run the grep command following:
grep -c 'my-word' file
Where,
-c option suppress normal output; instead print a count of matching lines for each input file. With the -v, --invert-match option, count non-matching lines.
I strongly suggest that you read the following grep tutorial: