Input: Sentence: 'A metal pat with a slice of pizza on top of it'. Count the number of nouns in this sentence.
Output: 5