Input: Sentence: 'a window is next to a toilet in a bathroom'. Count the number of nouns in this sentence.
Output: 3