title: function that returns how many nouns in a sentence (noun POS tag) in python
body: <pre><code>var = ("this is my problem , i need help for a function like this one ")
  exampleArray = [var]
  def process_language():
      for item in exampleArray:
          tokenized = nltk.word_tokenize(item)
          tagged = nltk.pos_tag(tokenized)
          print (tagged)
  process_language()
  </code></pre>
  
  <p>this function returns :</p>
  
  <pre><code>[('this', 'DT'), ('is', 'VBZ'), ('my', 'PRP$'), ('problem', 'NN'), (',', ','), 
  ('i', 'VBP'), ('need', 'VBP'), ('help', 'NN'), ('for', 'IN'), ('a', 'DT'), 
  ('function', 'NN'), ('like', 'IN'), ('this', 'DT'), ('one', 'NN')]
  </code></pre>
  
  <p>i'm looking for a similair function that returns 4 which means four nouns thank you</p>