Input: Sentence: 'The baseball batter has on a yellow jersey'. Count the number of nouns in this sentence.
Output: 3