Input: Sentence: 'A couple of horses standing in the middle of a road'. Count the number of nouns in this sentence.
Output: 4