Input: Sentence: 'A man holds up a bunch of four red bananas'. Count the number of nouns in this sentence.
Output: 3