Input: Sentence: 'A baby looks like he is eating a hairbrush'. Count the number of nouns in this sentence.
Output: 2