Input: Sentence: 'A snowboarder is doing a trick as he flies through the air'. Count the number of nouns in this sentence.
Output: 3