Input: Sentence: 'A man on a card hitting a ball as a baseball player'. Count the number of nouns in this sentence.
Output: 5