Input: Sentence: 'A clock tower of a building with the moon rising near it'. Count the number of nouns in this sentence.
Output: 4