Input: Sentence: 'A big dog laying on his bed on the floor'. Count the number of nouns in this sentence.
Output: 3