Input: Sentence: 'A collection of headshots dot the picture frame'. Count the number of nouns in this sentence.
Output: 4