Input: Sentence: 'Four people are in a long boat in the water'. Count the number of nouns in this sentence.
Output: 3