Input: Sentence: 'a close up of a sliced pizza on a wooden surface'. Count the number of nouns in this sentence.
Output: 3