Input: Sentence: 'A group of children riding skis on a slope'. Count the number of nouns in this sentence.
Output: 4