Input: Sentence: 'a pepperoni pizza is on a brown plate on a stove'. Count the number of nouns in this sentence.
Output: 4