Input: Sentence: 'The tower of the building has a clock displayed on the front of it'. Count the number of nouns in this sentence.
Output: 4