Input: Sentence: 'A view of  a kitchen in the middle of day'. Count the number of nouns in this sentence.
Output: 4