Input: Sentence: 'A man is holding a large ax while snowboarding'. Count the number of nouns in this sentence.
Output: 2