In this case, LDR has been replaced with capacitor C1-0.01uF and resistor R3-1K has been replaced with L1 & VC1. In place of a LED, a Piezo Diaphragm has been kept.
We just need to add inductor, capacitor and a piezo diaphragm to convert a dark detector to an AM radio.
To make an object counter we can use a simple dark detector circuit and a normal calculator. Pole and NO (Normally Open) terminals of a relay have to be connected to the two pins which are used to activate ‘=’ key of calculator.
As we block the light falling on LDR, the calculator starts counting.
For the calculator to work as a counter, we first need to press ‘1’ and ‘+’ keys.