Input: Sentence: 'A clock tower and another red and white building but have graffiti'. Count the number of nouns in this sentence.
Output: 4