Input: Sentence: 'A stack of hats sits next to a stuffed bear wearing pink and white striped mittens and a hat'. Count the number of nouns in this sentence.
Output: 5