Input: Sentence: 'Many yellow and green lemons are stacked in baskets'. Count the number of nouns in this sentence.
Output: 2