title: Count verbs, nouns, and other parts of speech with python's NLTK
body: <p>I have multiple texts and I would like to create profiles of them based on their usage of various parts of speech, like nouns and verbs. Basially, I need to count how many times each part of speech is used.</p>
  
  <p>I have tagged the text but am not sure how to go further:</p>
  
  <pre><code>tokens = nltk.word_tokenize(text.lower())
  text = nltk.Text(tokens)
  tags = nltk.pos_tag(text)
  </code></pre>
  
  <p>How can I save the counts for each part of speech into a variable?</p>