Input: Sentence: 'A modern bathroom features a shower as well as a toilet'. Count the number of nouns in this sentence.
Output: 3