Input: Sentence: 'A part of a cake left over from a celebration'. Count the number of nouns in this sentence.
Output: 3