This circuit uses a sensor for detecting a coin and a microcontroller that counts the coin and shows the count on 7-segment display.