Input: Sentence: 'A man riding skis while holding ski pole'. Count the number of nouns in this sentence.
Output: 3