Input: Sentence: 'Woman and young child riding on a public transit bus'. Count the number of nouns in this sentence.
Output: 4