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 barge floating down a river towards a city'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'A man looking at a paper while wearing a small tie'. Count the number of verbs in this sentence.
Output: 2