TASK DEFINITION: In this task, you need to count the number of nouns/verbs in the given sentence.
PROBLEM: Sentence: 'A picture of a cat looking at its reflection in the water'. Count the number of nouns in this sentence.

SOLUTION: 4

PROBLEM: Sentence: 'The street is barred for a train to pass'. Count the number of verbs in this sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a lady walking in the rain carrying a pink umbrella'. Count the number of verbs in this sentence.

SOLUTION:
2