Input: Sentence: 'A pan topped with a cheesy pizza and a spatula'. Count the number of nouns in this sentence.
Output: 3