Input: Sentence: 'A man riding a skateboard on a bridge behind another man'. Count the number of nouns in this sentence.
Output: 4