Input: Sentence: 'A view of a bear in some water, from across the river'. Count the number of nouns in this sentence.
Output: 4