title: Determining word count using grep (in cases where there are multiple words in a line)
body: <p>Is it possible to determine the number of times a particular word appears using grep</p>
  
  <p>I tried the "-c" option but this returns the number of matching lines the particular word appears in</p>
  
  <p>For example if I have a file with</p>
  
  <p>some words and matchingWord and matchingWord</p>
  
  <p>and then another matchingWord</p>
  
  <p>running grep on this file for "matchingWord" with the "-c" option will only return 2 ...</p>
  
  <p>note: this is the grep command line utility on a standard unix os</p>