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

Ex Input:
Sentence: 'A red open fire hydrant spewing water from it'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'A boat flies its flag while sailing just off a pier'. Count the number of verbs in this sentence.

Ex Output:
2


Ex Input:
Sentence: 'a bowl of meat, vegetables and beans with a silver spoon with perforated holes in it'. Count the number of nouns in this sentence.

Ex Output:

6