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