Input: Sentence: 'Pedestrians hold umbrellas as they cross the street as snow starts to fall'. Count the number of nouns in this sentence.
Output: 4