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

Example Input: Sentence: 'The street is barred for a train to pass'. Count the number of verbs in this sentence.
Example Output: 2

Example Input: Sentence: 'A series of photographs showing an adorable white dog and lots of yellow fire hydrants'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'Jars of food are being canned in a pot of boiling water'. Count the number of verbs in this sentence.
Example Output:
2