Method for measuring the speed of planetary gear reducer