Input: Sentence: 'Three elephants stand and drink at the edge of the water'. Count the number of nouns in this sentence.
Output: 3