Input: Sentence: 'A person is walking in the sand near the water'. Count the number of nouns in this sentence.
Output: 3