NLTK provides the FreqDist class that let's us easily calculate a frequency distribution given a list as input.
Here we are using a list of part of speech tags (POS tags) to see which lexical categories are used the most in the brown corpus.
import nltk
brown_tagged = nltk.corpus.brown.tagged_w...