Input: Sentence: 'A tall clock tower with a flag on top'. Count the number of nouns in this sentence.
Output: 4