Input: Sentence: 'There is a clock on a brick building next to a window'. Count the number of nouns in this sentence.
Output: 4