Input: Sentence: 'A man rides a horse down a city street'. Count the number of nouns in this sentence.
Output: 4