Input: Sentence: 'Two boats are docked at the bank of a river'. Count the number of nouns in this sentence.
Output: 3