Input: Sentence: 'A black and white close up of a car in a cage'. Count the number of nouns in this sentence.
Output: 3