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

Example Input: Sentence: 'A cut in half sandwich sitting on top of a table next to a foam container'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'A dog looking up at a person with a frisbee at their feet'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'A bunch of oranges with an apple on top'. Count the number of verbs in this sentence.
Example Output:
0