Editing Results table and saving as a text

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;
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):