Input: Sentence: 'A person grabbing a piece of pizza from a pan'. Count the number of nouns in this sentence.
Output: 4