Input: Sentence: 'A group of commuters standing next to a passenger train'. Count the number of nouns in this sentence.
Output: 4