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

Ex Input:
Sentence: 'A steam engine train rumbles down the tracks'. Count the number of nouns in this sentence.

Ex Output:
4

Ex Input:
Sentence: 'Two sandwiches sitting on top of papers on a table'. Count the number of verbs in this sentence.

Ex Output:
1

Ex Input:
Sentence: 'A person standing by a window with a baseball bat'. Count the number of nouns in this sentence.

Ex Output:
4