Input: Sentence: 'A large amount of bananas grouped together in a line'. Count the number of nouns in this sentence.
Output: 3