Input: Sentence: 'A cat with its eyes closed lying on a wicker chair'. Count the number of nouns in this sentence.
Output: 4