Input: Sentence: 'a bathroom with a tub and a mirror in it'. Count the number of nouns in this sentence.
Output: 3