Input: Sentence: 'A living room with a couch and pictures on the wall'. Count the number of nouns in this sentence.
Output: 5