Input: Sentence: 'a horse in a field eating grass near a body of water'. Count the number of nouns in this sentence.
Output: 5