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

Example Input: Sentence: 'm mm m mm m mmmm mm m'. Count the number of nouns in this sentence.
Example Output: 1

Example Input: Sentence: 'A baseball player prepares to catch a ball'. Count the number of verbs in this sentence.
Example Output: 2

Example Input: Sentence: 'A group of people sitting around a window watching fireworks'. Count the number of nouns in this sentence.
Example Output:
4