I know that I can find a word in a text/array with this:
if word in text: 
   print 'success'
What I want to do is read a word in a text, and keep counting as many times as the word is found (it is a simple counter task). But the thing is I do not really know how to read words that have already been read. In the end: count the number occurrences of each word?
I have thought of saving in an array (or even multidimensional array, so save the word and the number of times it appears, or in two arrays), summing 1 every time it appears a word in that array.
So then, when I read a word, can I NOT read it with something similar to this:
if word not in wordsInText: 
       print 'success'