Input: Sentence: 'Three mini pizzas sitting on top of a metal pan'. Count the number of nouns in this sentence.
Output: 4