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