title: How to count the number of similar words present in a string when compared with a list of words?
body: <p>Suppose we have a list of words 
  L1={ good, awesome , bad, super, toy , hill } and a
  string S="this is an awesome line written by a good guy.".
  when we map these two we need to find the number of similar words.
  in this case its 2 (good, awesome)
  please help me how to solve this in python.
  PS: I am trying to create a binary response variable for a Machine Learning sub-task based on the similarity of words between the list and the string,
  I new to Natural Language Processing,is there any function to do this easily? </p>
  
  <p>PS:
   i tried by by first splitting the string and storing individual words in a list and then iterating it and comparing with the original list of words and increment the counter when the match is found.</p>
  
  <p>Is there any direct function to do this in NLP?</p>