Input: Sentence: 'A white fishing boat is on the water not far from a beach'. Count the number of nouns in this sentence.
Output: 4