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

[EX Q]: Sentence: 'A part of a cake left over from a celebration'. Count the number of nouns in this sentence.
[EX A]: 3

[EX Q]: Sentence: 'A cat sitting next to a pair of legs on the ground'. Count the number of nouns in this sentence.
[EX A]: 4

[EX Q]: Sentence: 'A man serves a ball in a tennis game'. Count the number of verbs in this sentence.
[EX A]:
1