Input: Sentence: 'Two black-and-white Springer Spaniel puppies sleeping in a dog bed with toys'. Count the number of nouns in this sentence.
Output: 4