Input: Sentence: 'a black and white sign a street some cars and trees'. Count the number of nouns in this sentence.
Output: 4