Input: Sentence: 'A man riding a skateboard next to another man'. Count the number of nouns in this sentence.
Output: 3