Input: Sentence: 'an image of boy and a dog sharing a hot dog'. Count the number of nouns in this sentence.
Output: 4