Input: Sentence: 'A person is riding a horse down the beach'. Count the number of nouns in this sentence.
Output: 3