Input: Sentence: 'A group of elephants gathered around their watering hole'. Count the number of nouns in this sentence.
Output: 4