Input: Sentence: 'tree people standing in a room while looking at something'. Count the number of nouns in this sentence.
Output: 3