Input: Sentence: 'Man looking at his reflection in a bathroom mirror while shaving'. Count the number of nouns in this sentence.
Output: 4