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

Ex Input:
Sentence: 'A laptop cake sits on a wooden table by a window'. Count the number of nouns in this sentence.

Ex Output:
4

Ex Input:
Sentence: 'Two people surfing in the sea and flying kites'. Count the number of nouns in this sentence.

Ex Output:
4

Ex Input:
Sentence: 'The hotdog has mustard and bacon on it'. Count the number of nouns in this sentence.

Ex Output:
3