Input: Sentence: 'A jockey sitting on a horse while several kids reach up to pet it'. Count the number of nouns in this sentence.
Output: 3