Input: Sentence: 'An old cracked brick building with a clock'. Count the number of nouns in this sentence.
Output: 3