Input: Sentence: 'A man on a horse is doing a jump'. Count the number of nouns in this sentence.
Output: 3