title: Counting the total number of ocurrences of a set of words using grep in bash
body: <p>I have a set of words 
  <code>happy enjoy dead cheerful</code></p>
  
  <p>I want to count the <strong>total number</strong> of appearances of these words in a text file <code>q.txt</code></p>
  
  <p>Right now I am using <code>grep</code> to count the individual words and then adding them, but it is not at all efficient for adding more words</p>