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

Example Input: Sentence: 'A person playing tug of war with a dog and a frisbee'. Count the number of nouns in this sentence.
Example Output: 5

Example Input: Sentence: 'A steam engine train rumbles down the tracks'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A hallway with a small view of a bathroom toilet'. Count the number of nouns in this sentence.
Example Output:
4