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

Example Input: Sentence: 'A subway train next to the boarding platform'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A red train engine coming into a station'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'The train is traveling down the railroad tracks'. Count the number of nouns in this sentence.
Example Output:
3

