Input: Sentence: 'a man is flying through the air on a snowboard'. Count the number of nouns in this sentence.
Output: 3