count nouns and print out ten most frequently nouns