title: count number of words occurrence in text based on list of string
body: <p>I want to know what is the best approach to find the number of occurrence in text based on list of string. I found some use sum(any()) but it didn't work because if text contains &quot;re&quot; it will count it</p>
  <pre><code>list1 = ['red', 'green', 'amazing', 'orange', 'amazing color', 'gray', 'pink']
  
  text=&quot;green and red is an amazing color &quot;
  </code></pre>
  <p>The expect count is 4</p>
  <p>Thank you</p>