Input: Sentence: 'A nighttime view of a marina filled with boats'. Count the number of nouns in this sentence.
Output: 3