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

Example Input: Sentence: 'A modern living room with a couch and tv'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A person talking a photo of a bathroom containing a sink and a toilet'. Count the number of verbs in this sentence.
Example Output: 2

Example Input: Sentence: 'A group of men loading the back of a truck with a large covered item'. Count the number of nouns in this sentence.
Example Output:
5