Counter function

Hi experts,

Could you tell me how to do the counter function in PSIM?
I want to count the number of pulses. but I don’t have any function block I can use.