Input: Sentence: 'a bath room with a toilet a window and a bath tub'. Count the number of nouns in this sentence.
Output: 6