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

Ex Input:
Sentence: 'A couple of horses standing in the middle of a road'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A cat sitting next to a pair of legs on the ground'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A group of men that are sitting on a bench'. Count the number of verbs in this sentence.

Ex Output:

1