Input: Sentence: 'an image of two girls with birthday cakes'. Count the number of nouns in this sentence.
Output: 4