Input: Sentence: 'A cupboard door with shiny glass reflecting a window'. Count the number of nouns in this sentence.
Output: 4