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

Example Input: Sentence: 'A giraffe standing on the grass plans in Africa'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A backyard with tables, shade trees, and a stepping stone path'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'An umpire gets ready to call a player safe or out'. Count the number of verbs in this sentence.
Example Output:
2