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

Example Input: Sentence: 'A silver and yellow engine is followed by several train cars'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'A young boy takes a swing during a little league baseball game'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'Two giraffes are housed in a pen'. Count the number of nouns in this sentence.
Example Output:
2