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 view of a laptop being held by someone laying in bed'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'a brown bear sitting down and looking into the water'. Count the number of verbs in this sentence.
Example Output:
2