Input: Sentence: 'a living room with two chairs and a tv'. Count the number of nouns in this sentence.
Output: 4