Input: Sentence: 'Two large dogs laying on a bed together'. Count the number of nouns in this sentence.
Output: 2