Input: Sentence: 'Man walking on a sidewalk that is sloping downhill approaching the corner'. Count the number of nouns in this sentence.
Output: 3