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

Example Input: Sentence: 'a messy room with clothes and a computer'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A group of volunteers enjoying a meal together'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'An elephant holds up his truck over a woman's head while a man in an army green jacket stands nearby'. Count the number of verbs in this sentence.
Example Output:
2