title: fastest way to compare text file content
body: <p>I have a question to help streamline my programming. 
  So I have this file <code>text.txt</code> and in it I want to look through it and compare it with a list of words <code>words</code> and each time the word is found it adds <code>1</code> to an integer. </p>
  
  <pre><code>words = ['the', 'or', 'and', 'can', 'help', 'it', 'one', 'two']
  ints = []
  with open('text.txt') as file:
      for line in file:
          for part in line.split():
              for word in words:
                  if word in part:
                      ints.append(1)
  </code></pre>
  
  <p>I was just wondering if there was a faster way to do this? The text files could be rather larger and the list of words will be much larger. </p>