Input: Sentence: 'Two men are talking to each other while holding a skateboard'. Count the number of nouns in this sentence.
Output: 2