Input: Sentence: 'A clock tower on top of an ornate building'. Count the number of nouns in this sentence.
Output: 4