With the continuous development of a single-chip microcomputer, the counting equipment tends to be automatic. It needs an automatic technical device with real-time, high efficiency, and accuracy to meet the counting requirements of the modern production...