In this article the function and exploitation step of GUI in MATLAB was introduced. By using GUI in production practice,we can not only simplify the counting process but also make the result visual. It provides convenient statistics method for experiment of agricultural machine.