Input: Sentence: 'a man is doing a trick on a skateboard'. Count the number of nouns in this sentence.
Output: 3