TASK DEFINITION: In this task, you need to count the number of nouns/verbs in the given sentence.
PROBLEM: Sentence: 'A boat flies its flag while sailing just off a pier'. Count the number of verbs in this sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a man is sitting in front of a computer at a desk'. Count the number of verbs in this sentence.

SOLUTION: 1

PROBLEM: Sentence: 'A bird perched in a tree with a partially eaten apple'. Count the number of nouns in this sentence.

SOLUTION:
3