title: How to find a word - First letter will be capital & other will be lower
body: <p>Problem Statement: Filter those words from the complete set of text6, having first letter in upper case and all other letters in lower case. Store the result in variable title_words. print the number of words present in title_words.</p>
  
  <p>I have tried every possible ways to find the answer but don't know where I am lagging.</p>
  
  <pre><code>import nltk
  from nltk.book import text6
  title_words = 0
  for item in set(text6):
      if item[0].isupper() and item[1:].islower():
          title_words += 1
  print(title_words)
  </code></pre>
  
  <p>I have tried in this way as well:</p>
  
  <pre><code>title_words = 0
  for item in text6:
      if item[0].isupper() and item[1:].islower():
          title_words += 1
  print(title_words)
  </code></pre>
  
  <p>I am not sure how many count its required, whatever the count is coming its not allowing me to pass the challenge. Please let me know if I am doing anything wrong in this code</p>