Input: Sentence: 'A bunch of bananas are hanging on the vine'. Count the number of nouns in this sentence.
Output: 3