title: Count the number of times a group of words appear in a text
body: <p>I have 4 lists of words that categorise something and a tokenised text by word.</p>
  <pre><code>animals = [&quot;cat&quot;, &quot;dog&quot;, &quot;fish&quot;]
  colours = [&quot;blue&quot;, &quot;red&quot;, &quot;green&quot;]
  food = [&quot;pasta&quot;, &quot;chips&quot;, &quot;beef&quot;]
  sport = [&quot;football&quot;, &quot;basketball&quot;, &quot;tennis&quot;]
  
  text = [&quot;Once&quot;,&quot;upon&quot;,&quot;a&quot;,&quot;time&quot;,.......]
  </code></pre>
  <p>I would like to count the number of occurrences of the words in these lists in a certain text but as a sum of the words for each list. Therefore the results would show an occurrence of 10 animal words, 20 colour words, 6 food words and 13 sport words across the whole text.</p>
  <p>The data I'm actually working on is quite large, so anything that works quickly is required.</p>
  <p>Thanks for any help!</p>