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

Input: Consider Input: Sentence: 'A boat with emergency lights on it sitting in a harbor'. Count the number of nouns in this sentence.

Output: 4

Input: Consider Input: Sentence: 'A cut in half sandwich sitting on top of a table next to a foam container'. Count the number of nouns in this sentence.

Output: 6

Input: Consider Input: Sentence: 'A man holding a dog with a neon green frisbee'. Count the number of nouns in this sentence.
Output: 4