Input: Sentence: 'A man in black shirt doing a trick on a skateboard'. Count the number of nouns in this sentence.
Output: 4