Input: Sentence: 'a white and black truck and some houses'. Count the number of nouns in this sentence.
Output: 2