Input: Sentence: 'A lady riding a rodeo horse preparing to round a barrel'. Count the number of nouns in this sentence.
Output: 4