| 
                 Aaron Cake 
                Administrator 
                      
                 
                
                Canada 
                6718 Posts  | 
                
                  
                    
                      
                       Posted - May 09 2010 :  10:58:41 AM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       There is a sample counter on the circuits page on this site which can be expanded to as many digits as you require (it explains how on the page).
  A phototransistor may be slightly easier. Just shade one in a tube and have an IR LED shine at it. Connect the collector to your voltage source through a series resistor and the emittor to the input of the counter IC. | 
                     
                    
                        | 
                     
                   
                 |