Input: Sentence: 'A man flying through the air while riding skis'. Count the number of nouns in this sentence.
Output: 3