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

Example Input: Sentence: 'Group of pilots displaying protest messages behind fenced area'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A cut in half sandwich sitting on top of a table next to a foam container'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'Woman in a black hoodie holding up a toothbrush in her hand'. Count the number of nouns in this sentence.
Example Output:
4