Input: Sentence: 'A ripe orange sitting in a dark background'. Count the number of nouns in this sentence.
Output: 2