Input: Sentence: 'A ball, bat and baseball glove laying on the ground'. Count the number of nouns in this sentence.
Output: 5