Input: Sentence: 'a long tower on top of a white building'. Count the number of nouns in this sentence.
Output: 3