title: Finding a number of unique words in a line of text file
body: <p>I would like to create a Python program to find the unique words in a line in text file.</p>
  
  <p>The text file "details" has following lines</p>
  
  <pre><code>My name is crazyguy
  i am studying in a college and i travel by car
  my brother brings me food for eating and we will go for shopping after food.
  </code></pre>
  
  <p>it must return output as</p>
  
  <pre><code>4
  10 #(since i is repeated)
  13 #(Since food and for are repeated)
  </code></pre>
  
  <p>If the code works, will it work the same way for bigger text files in mining the data?</p>