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

Example Input: Sentence: 'A parking meter in front of a car'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A person is walking with their dog in a backpack in the park'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'an older person holding an open umbrella'. Count the number of nouns in this sentence.
Example Output:
2