Hello Community -
Thanks for taking some time to read this thread. Some context; my organization conducts 'risk assessments' to assess inherent risk on each initiative we engage. We've created a Risk sub-object (Project master object):

which is basically a table of predefined risk rows and columns to which PMs fill out and SMEs validate/confirm (it is a sub-page in classic):

If I create a process using the risk assessment as the primary object, I can lock individual rows however am unable to count the number of rows inserted so cannot rely on this to account for every scenario, thus need code..
Respectfully requesting code (GEL, etc, whatever works) to embed in a process which counts the number of rows in the table above (there might be more than what's shown, so it'd probably have to count until, i.e., remaining rows=0), then locks each row to prevent users from editing per # of rows counted. Bonus points if you may also be an amazing person and include code to Unlock the counted # of rows using the same logic as above.
This would be a life-saver as I am a newer user of Clarity and coding, and my organization is undergoing a project management transformation. Thank you in advance for your help and/or input. Any and all information is welcomed.
Best,
Matt