Input: Sentence: 'A man is walking on the sidewalk holding an umbrella'. Count the number of nouns in this sentence.
Output: 3