Input: Sentence: 'A man holds a long baton as he skateboards'. Count the number of nouns in this sentence.
Output: 2