Input: Sentence: 'A man water skiing in the beautiful ocean'. Count the number of nouns in this sentence.
Output: 4