This is a project to simulate a system product count on the belt, a sensor system (here you can use infrared and optical sensor pair back to this, or buy other specialized modules) used to detect a product, whenever products run through the counter will increase by one unit, the results are displayed on the LCD screen. You may also be replaced by the 7-segment LED LCD to display the results, to do this you need to see how to scan and programmable 7-segment LED display 7-segment LED on pic 16f877a microcontroller. Download code and simulation