Instructions: In this task, you need to count the number of nouns/verbs in the given sentence.
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