Need help creating a counter for an LED

Are you wired as such ?

+5V----[LDR]----[A0]----[10k]----GND