Input: Sentence: 'an image of a boat in the water sailing'. Count the number of nouns in this sentence.
Output: 4