Input: Sentence: 'A parade of horses with their riders fancifully dressed'. Count the number of nouns in this sentence.
Output: 3