Input: Sentence: 'a toilet next to a shower with a curtain'. Count the number of nouns in this sentence.
Output: 3