An automatic count system of bubbles based on the optoelectronic technology is disclosed. It includes air intake pipe, bubble pipe, glass-measuring tube, testing agents, light-emitting diode, D.C. regulated power supply, silicon photocell, amplifying circuit, data acquisition card and computer. The light signal signaled from the light-emitting diode can be inductive by the silicon photocell; the light signal can be transformed into voltage signal, amplified by the amplifying circuit, and input to computer via the data acquisition card. In the glass-measuring tube, the disturbance to light signal by bubbles raises a fluctuation of outcoming voltage signal outputted from silicon photocell when bubbles go by the testing agents, wave analysis is done to the acquiesced voltage signal by computer to realize the count of bubbles. The invention can realize automatic count of bubbles, has the advantages of simple structure, accuracy of count, wide effective measuring range, stabilization and reliability, and be widely used in quantitative measurement of tiny leakage and other condition of need to count bubbles.