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

Ex Input:
Sentence: 'Man poses for picture with his dog while sitting on a bench'. Count the number of nouns in this sentence.

Ex Output:
4


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 picture of a carrot and a knife on a plate'. Count the number of verbs in this sentence.

Ex Output:

0