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

Input: Consider Input: Sentence: 'A train car with four beds next to a window'. Count the number of nouns in this sentence.

Output: 4


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 neglected skate park has weeds and empty benches'. Count the number of nouns in this sentence.


Output: 4