Input: Sentence: 'Two men are in playing in the ocean'. Count the number of nouns in this sentence.
Output: 2