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

Ex Input:
Sentence: 'a man is riding a red motorcycle on the street'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'A deep dish pizza sitting on top of a table next to a spatula'. Count the number of verbs in this sentence.

Ex Output:
1


Ex Input:
Sentence: 'People are having fun in the living room'. Count the number of nouns in this sentence.

Ex Output:

4