Input: Sentence: 'a person flying a kite on a beach near water'. Count the number of nouns in this sentence.
Output: 4