Input: Sentence: 'An older man takes a bite of a slice of pizza'. Count the number of nouns in this sentence.
Output: 4