Input: Sentence: 'Several men riding in a canoe across the water'. Count the number of nouns in this sentence.
Output: 3