Input: Sentence: 'their is a chair in the room the room has yellow walls'. Count the number of nouns in this sentence.
Output: 4