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

Input: Consider Input: Sentence: 'A barge floating down a river towards a city'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'a long tower on top of a white building'. Count the number of verbs in this sentence.

Output: 0


Input: Consider Input: Sentence: 'A man and woman are walking up the beach after he has finished surfing'. Count the number of verbs in this sentence.


Output: 3