Input: Sentence: 'A man wearing a red and white stripe vest and a straw hat'. Count the number of nouns in this sentence.
Output: 5