Input: Sentence: 'An old fashioned clock mounted on the side of a building'. Count the number of nouns in this sentence.
Output: 3