digital object counter using ldr