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

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: 'A duckling swims in a pond and catches some food'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A car with bright headlights coming up the street'. Count the number of verbs in this sentence.
Example Output:
1