Input: Sentence: 'A zebra in the sun on a dirt road'. Count the number of nouns in this sentence.
Output: 4