Input: Sentence: 'A group of people wave while riding a ski lift'. Count the number of nouns in this sentence.
Output: 3