Input: Sentence: 'Street signs with a cartoon policeman in Shanghai'. Count the number of nouns in this sentence.
Output: 4