Input: Sentence: 'A man is holding a bunch of green bananas in his yard'. Count the number of nouns in this sentence.
Output: 4