Editing Results table and saving as a text

Hello
I am trying to either get the total number of rows in the results table (here it is 9) and insert this value under a new column (already created here as #_puncta). So it will be 9 for each row under column #puncta.

Can anyone help me with the appropriate script or macro to use in ImageJ.
I tried using the following macro but it is not working it inserts 0

n = nResults;
k=newArray(n);
Table.setColumn("#_puncta", k);

results_question results_question_1

Thank you

Hi @DavidBNorm,

I’ve got a YouTube tutorial that shows how to write in tables (starting at 10:30):
https://m.youtube.com/watch?v=Ydk6z-M9bAc&list=PL5ESQNfM5lc7SAMstEu082ivW4BDMvd0U&index=11

Cheers,
Robert