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

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: 'This is a close up shot of a mans goatee'. Count the number of nouns in this sentence.

Ex Output:
2

Ex Input:
Sentence: 'A player with a baseball bat at a game'. Count the number of nouns in this sentence.

Ex Output:
4