Input: Sentence: 'Some men are putting lots of bananas into piles'. Count the number of nouns in this sentence.
Output: 4