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

Input: Consider Input: Sentence: 'A train on a track in the middle of a neighborhood'. Count the number of nouns in this sentence.

Output: 4

Input: Consider Input: Sentence: 'A clock moniker at the front of a pier leading to a beach'. Count the number of verbs in this sentence.

Output: 1

Input: Consider Input: Sentence: 'A person is riding a horse down the beach'. Count the number of verbs in this sentence.
Output: 1