Development of a high-speed counting module and optimization – construction of a sorting box