Input: Sentence: 'A herd of African elephants gather at a water hole'. Count the number of nouns in this sentence.
Output: 4