Input: Sentence: 'a living room with some lights a television set a table and a brown couch'. Count the number of nouns in this sentence.
Output: 6