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 view of a very modern kitchen. Its a 3d drawing'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'A man jumping up into the air next to a red fire hydrant'. Count the number of nouns in this sentence.
Output: 4