
I want to do something like this:
- If there is an image detected, increase the counter by 1.
- If the counter is greater than 50 then execute the given code.
- If there is another image then reset the counter.
Unfortunately I do not know how to set the increase counter by 1.
Thank you for your help.