Input: Sentence: 'A black and white picture of a tv beside a window with a view of the city'. Count the number of nouns in this sentence.
Output: 5