Input: Sentence: 'A window with a red frame showing the reflection of a building'. Count the number of nouns in this sentence.
Output: 4