Input: Sentence: 'A man is playing a video game while a little girl watches'. Count the number of nouns in this sentence.
Output: 4