Input: Sentence: 'A dog laying down in the bed with blankets covering it'. Count the number of nouns in this sentence.
Output: 3