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 German shepherd laying in front of a door'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'A dog is laying on a bed next to pillows'. Count the number of nouns in this sentence.

Ex Output:

3