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