Input: Sentence: 'people in costume riding down the road on horses'. Count the number of nouns in this sentence.
Output: 4