Input: Sentence: 'Two officers riding horses on a city street'. Count the number of nouns in this sentence.
Output: 4