Input: Sentence: 'A couple of people and a dog in the water'. Count the number of nouns in this sentence.
Output: 4