Input: Sentence: 'An airplane is flying over the water near an island'. Count the number of nouns in this sentence.
Output: 3