Input: Sentence: 'a black pan with an unbaked pizza on it'. Count the number of nouns in this sentence.
Output: 2