Input: Sentence: 'A cat that is laying down on a bed'. Count the number of nouns in this sentence.
Output: 2