To make them in a column would be super simple with PSP:
- create a text with the Text tool where you would enter 1 [enter] 2 [enter] 3 [enter] 4 [enter] and so on. That will place all the numbers one below the other.
- if you want them closer together, adjust the Leading value to something like -0.6 or so (it will depend on the font and the look you want)
- that’s it.
For the top row, it is a bit more tedious, of course, as you likely would have to place guides in the center of each column/box and place the numbers there, one by one. Yes, a script is probably possible, but do you have some settings that are always the same? like the same font, the same size, the same size of boxes?