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

Example Input: Sentence: 'A tennis player looks at a tennis ball as she lifts up a tennis racket'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'a street sign is displayed on a nice summer day'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A cat standing on a table in front of the fireplace'. Count the number of nouns in this sentence.
Example Output:
4