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

Example Input: Sentence: 'A man in a diner holding two baskets of sandwiches'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A very classic bathroom that is decorated in brown and white'. Count the number of nouns in this sentence.
Example Output: 1

Example Input: Sentence: 'A man with a cell phone in his hand while travelling on public transportation'. Count the number of nouns in this sentence.
Example Output:
5