Input: Sentence: 'An aerial view of a boat approaching a coastline'. Count the number of nouns in this sentence.
Output: 3