Input: Sentence: 'A small bathroom with a curtain in the window'. Count the number of nouns in this sentence.
Output: 3