Motion detector - How to use a timer counter (is it size?) correctly?

OK the semikolon is wrong but the brackets () don´t change the warning message

ok I just will do this, even that for the first time it takes four triggers

new is important
; is not used in xTend (Remember we language here is XTend not JAVA)