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

[Q]: Sentence: 'A train car with four beds next to a window'. Count the number of nouns in this sentence.
[A]: 4


[Q]: Sentence: 'A kite flying next to a palm tree in a blue sky'. Count the number of nouns in this sentence.
[A]: 4


[Q]: Sentence: 'A small cat peaking out of a black purse'. Count the number of verbs in this sentence.
[A]:
1