Finding total number of words in .txt document
<pre><code>find = open("words.txt")

def noE():    
    for line in find:
        if line.find("e") == -1:
            word = line.strip()
            print word,

noE()
</code></pre>

<p>The above code searches the .txt file for all words that do not contain the letter "e" and then prints them. I would like to then be able to get a count of the total number of words under this <em>if</em> conditional.  I looked into the python docs and found Count() but the import wasn't working for me (assuming I did something wrong). Any help would be much appreciated! </p>
