Input: Sentence: 'A man riding a skateboard on a walkway surrounded by people'. Count the number of nouns in this sentence.
Output: 4