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

Ex Input:
Sentence: 'A small kitchen knife on top of a sliced carrot'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A traffic sign sitting on the side of a road'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'Old man in white shirt swinging a baseball bat'. Count the number of verbs in this sentence.

Ex Output:

1