Sensor PIR + display seven leds counter

The code that you posted does not use a counter. Post the code that you are having a problem with.