Input: Sentence: 'some people and a brown and white dog a lamp and chairs'. Count the number of nouns in this sentence.
Output: 4