Definition: In this task, you need to count the number of nouns/verbs in the given sentence.
Input: Sentence: 'Baseball player in the motion of swinging at a baseball coming towards him'. Count the number of nouns in this sentence.
Output:
4