Question [Q] It's possible create a internal variable?

hello, I am making a widget that counts the number of events today.
For example if 2 events this day, the number 2 is shown ..

The string did is this $#DD#=#C0SDD#?1:0$

any idea if there are more than one event?

i think that its a posibble way to create a new variable that function thats a counter the job can be done..