Input: Sentence: 'A photo of a TV dinner beside a computer and action figures'. Count the number of nouns in this sentence.
Output: 6