added index count to robot.