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

Ex Input:
Sentence: 'a plate of food that is on a table'. Count the number of nouns in this sentence.

Ex Output:
3

Ex Input:
Sentence: 'Two cows stand next to each other in a field'. Count the number of nouns in this sentence.

Ex Output:
2

Ex Input:
Sentence: 'A bowl of fruit containing several types of apples'. Count the number of nouns in this sentence.

Ex Output:
4