Input: Sentence: 'People are having fun in the living room'. Count the number of nouns in this sentence.
Output: 4