Input: Sentence: 'The view from inside a kitchen to outside a window at dusk'. Count the number of nouns in this sentence.
Output: 4