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

Ex Input:
Sentence: 'A couple of boats traveling down a river'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'A modest wooden bench looks out on a spectacular vista of mountains and cliffs'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'a baseball player attempting to throw a ball'. Count the number of verbs in this sentence.

Ex Output:

2