Input: Sentence: 'A black cat is laying on the back of a couch'. Count the number of nouns in this sentence.
Output: 3