Input: Sentence: 'Some bread is on a plate with jam, an apple, yogurt and orange juice'. Count the number of nouns in this sentence.
Output: 6