Edge 1040: Trying to find example code to have a count datafield

I would like to develop more or less the same page where I could adjust this during the activity.

Any idea where I could find similar source code i could adjust ?

Thank you for your help