Input: Sentence: 'A couple of boats traveling down a river'. Count the number of nouns in this sentence.
Output: 3