Input: Sentence: 'a rider on a horse jumping a hurdle'. Count the number of nouns in this sentence.
Output: 3