Input: Sentence: 'A black and white photo of a tall building'. Count the number of nouns in this sentence.
Output: 2