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

[Q]: Sentence: 'A tray with a doughnut and a cup of coffee on it'. Count the number of nouns in this sentence.
[A]: 4


[Q]: Sentence: 'A barge floating down a river towards a city'. Count the number of nouns in this sentence.
[A]: 3


[Q]: Sentence: 'a four-legged animal grazes on the side of a hill in a forest'. Count the number of nouns in this sentence.
[A]:
4