Led Light Counter (within Time Interval)

Hello, I've got this project with me about PIR motion sensor and led light on Arduino. Can you please help me with the code that I need. I want to count the number of led blinks (which is also the no. of motion detected) within time interval (2 hours for example) and send me alarm message/buzzer if no motion/blink happened within that period.

Post the code you've written and the folks here can help you.

I want to count the number of led blinks

It would make more sense to count the times you told the LED to change state, not the number of times that it obeyed.

What makes you tell the LED to change state?

within time interval

Starting when?

and send me alarm message/buzzer

You want the Arduino to send you a buzzer? Get real.