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

Example Input: Sentence: 'A German shepherd laying in front of a door'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'Two people surfing in the sea and flying kites'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'An old tow truck and pickup truck are parked on a rundown roadside'. Count the number of verbs in this sentence.
Example Output:
1