Input: Sentence: 'A green bus is traveling along a country road'. Count the number of nouns in this sentence.
Output: 3