Input: Sentence: 'A boy riding in a canoe in a lake'. Count the number of nouns in this sentence.
Output: 3