Input: Sentence: 'a boat docked at a wooden dock on a lake'. Count the number of nouns in this sentence.
Output: 3