Input: Sentence: 'A lot of bananas are growing on a tree'. Count the number of nouns in this sentence.
Output: 3