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

Input: Consider Input: Sentence: 'A man and children are riding on the back of an elephant'. Count the number of nouns in this sentence.

Output: 4


Input: Consider Input: Sentence: 'A person smiles as she stands on a skateboard in a crowd with a photographer nearby'. Count the number of verbs in this sentence.

Output: 2


Input: Consider Input: Sentence: 'a cut in half sandwich sitting on top of a white plate'. Count the number of verbs in this sentence.


Output: 1