Input: Sentence: 'A small girl rides a horse through a snady area'. Count the number of nouns in this sentence.
Output: 3