Input: Sentence: 'A view of a beach with closed umbrellas at sunset'. Count the number of nouns in this sentence.
Output: 4