Input: Sentence: 'A group of people smiles at the camera while eating pizza in the grass'. Count the number of nouns in this sentence.
Output: 5