The movement regularity of bar steel product in transportation was analyzed,and new automatic counting method for bar steel and the relevant mechanical and electrical integrative device were studied in this article.The means of mechanical and optoelectronic clever combination for this device was adopted to solve the bar counting problem along with effect of the irregular arrangement on bar counting,so that stable and correct automatic counting and controlling for bar steel were achieved.