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

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 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 display in a restaurant filled with lots of fresh produce'. Count the number of verbs in this sentence.

Ex Output:
1