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

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

Output: 3

Input: Consider Input: Sentence: 'The bathroom has a sink with an Elvis Presley item'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'A baseball player swings at a ball while the catcher is ready to catch the ball'. Count the number of verbs in this sentence.
Output: 3