Input: Sentence: 'A pile of ripe bananas sitting next to a pair of pink glasses'. Count the number of nouns in this sentence.
Output: 4