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

Ex Input:
Sentence: 'A group of people having dinner and drinking wine'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A picture of a picture of a man wearing a tie'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'three horses standing next to each other in a field of grass'. Count the number of verbs in this sentence.

Ex Output:

1