LED on off counter and timer?!!

Hello everyone,,,

I have a project to measure the level of reliability of an electric power system.

The idea that I want to implement ''using Arduino uno'' is to connect number of LEDs on a breadboard with a switch. So that every time the LEDs are off ''by using the switch'' a variable is increased to count the number of power outages. Also, I need to measure the time that the LEDs have been off.

I'm beginner and any help would be greatly appreciated...

Thank you.

How many more times are you going to post THE SAME QUESTION?

CROSS-POSTING WASTES TIME; DO NOT CROSS-POST.