Input: Sentence: 'A man siting on a bench holding a pizza'. Count the number of nouns in this sentence.
Output: 3