I want input dialog label write

I imported all the files in the directory, but foreach, only one is displayed in the label section of the inputdialog, but 11 should be displayed, but what should I do?