Input: Sentence: 'A man standing on the sidewalk near a pedestrian sign'. Count the number of nouns in this sentence.
Output: 4