In this task, you need to count the number of nouns/verbs in the given sentence.

Input: Consider Input: Sentence: 'Derek Jeter approaches the plate in a baseball game against the Giants'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'a blender near a stove with an open flame'. Count the number of verbs in this sentence.

Output: 0

Input: Consider Input: Sentence: 'A bench sitting on a beach side next to a fence'. Count the number of verbs in this sentence.
Output: 1