Input: Sentence: 'Two elephants standing in an open field near the ocean'. Count the number of nouns in this sentence.
Output: 3