In this task, you need to count the number of nouns/verbs in the given sentence.
--------
Question: Sentence: 'A boat with emergency lights on it sitting in a harbor'. Count the number of nouns in this sentence.

Answer: 4


Question: Sentence: 'A man sitting in front of a computer taking a bit out of a pastry and holding a drink'. Count the number of nouns in this sentence.

Answer: 6


Question: Sentence: 'The jar that is left out on the table is dirty'. Count the number of nouns in this sentence.

Answer:
2