Input: Sentence: 'Two people on a horse ride in a city street'. Count the number of nouns in this sentence.
Output: 5