Addition to JankyRobotTemplate to reset the number of motors