
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.

nice project, I just finished the same:
http://and-tech.pl/produk-testowy/
http://sanguino.cc/
http://arduino.cc
If this is a learning project, OK. If you just want a counter, you can get a compact unit for about $12.
http://www.redlion.net/Products/DigitalandAnalog/MiniatureDisplays/DigitalInputs/SCUB1.html
http://www.ebay.com/itm/Red-Lion-SCUB1-Sub-Cub-6-digit-LCD-Component-Counter-/400589349240