Input: Sentence: 'A small pizza with pepperoni sitting on an oven rack'. Count the number of nouns in this sentence.
Output: 3