Input: Sentence: 'A woman in a purple dress with white polka dots stands drinking a beverage at a public gathering'. Count the number of nouns in this sentence.
Output: 6