Input: Sentence: 'A hamburger has a lot of cheese on top'. Count the number of nouns in this sentence.
Output: 4