how to count blinking LED flashes using arduino uno boards and LDR?
LDRs only give an analog output, proportional to the amount of light. 

To make it give a HIGH and LOW value, you have to tweak the other resistor used in the voltage divider. 

Alternatively you could use analogRead and add a threshold value in your code.