Input: Sentence: 'There are many goats on the side of the road'. Count the number of nouns in this sentence.
Output: 3