title: How do I find the count of multiple words in a text file?
body: <p>I am able to find the number of times a word occurs in a text file, like in Linux we can use:</p>
  <pre><code>cat filename|grep -c tom
  </code></pre>
  <p>My question is, how do I find the count of multiple words like &quot;tom&quot; and &quot;joe&quot; in a text file.</p>