Input: Sentence: 'People in a crosswalk waiting for street car to pass by'. Count the number of nouns in this sentence.
Output: 4