Input: Sentence: 'The young boy is wearing a ball mit'. Count the number of nouns in this sentence.
Output: 3