Here’s a production line counter project build on an ATmega 8 micro by Davide Gironi:
It has 4 digit seven segment display. It can count from 1 to 9999 pieces. User can program it to emit an alarm when a number of items is reached.
Check out the video after the break.