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

Ex Input:
Sentence: 'A person wipes out on their surfboard in the ocean'. Count the number of nouns in this sentence.

Ex Output:
3

Ex Input:
Sentence: 'A lady at an intersection on her bicycle, waiting for the traffic light to change'. Count the number of verbs in this sentence.

Ex Output:
2

Ex Input:
Sentence: 'A cat laying on its back on a bed'. Count the number of verbs in this sentence.

Ex Output:
1