How to show the total no: of times a checkbox has checked in a textbox

Hi Experts,

My requirement is to show the total no: of times notifiyGSSPartners checkbox has been checked.notifiyGCSS is a check box which will automatically clear when we click on save or save and exit.

So we have to display the count of total no: of times the check box has been clicked in a separate read only textbox.

Currently I am planning to give a condition like below in im.view.init process(Final Expression).But it is showing some errors.

if(notifiyGSSPartners in $L.file="true") then (NotifyGCSSCount in $L.file 1)

NotifyGCSSCount  is the textbox.

Could you please suggest me a solution.

Any Suggestions are appreciated.

Thanks & Regards,

Sandhu Mol