Input: Sentence: 'A young child sleeping sideways on a bed full of books and toys'. Count the number of nouns in this sentence.
Output: 4