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

Example Input: Sentence: 'a sub sandwich wrapped in some paper and cut in half'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A display of broccoli and squashed in bins'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A motor scooter sitting next to some bicycles outside a restaurant'. Count the number of nouns in this sentence.
Example Output:
4