Input: Sentence: 'A young girl is sitting atop a small horse'. Count the number of nouns in this sentence.
Output: 2