Input: Sentence: 'Two globes and two balls on top of a table'. Count the number of nouns in this sentence.
Output: 4