Input: Sentence: 'A freshly baked pizza resting on a table'. Count the number of nouns in this sentence.
Output: 2