Input: Sentence: 'Some children trying to pet an animal at the zoo'. Count the number of nouns in this sentence.
Output: 3