Distance between countertop power outlet and gas range
Code doesn’t restrict the location of a range receptacle. They are normally behind the range location most are below the counter height so the receptacle is not visible when the range is in place. The builder has no idea what range may be used in most cases.
Added to be more specific; the location of countertop receptacles is not restricted other than there must be one within 2’ of counter space or 4’ between. The receptacle can be mounted adjacent to a stove cut out and or adjacent to a sink location but there are no restrictions the same as the location of the receptacle behind the stove if one is installed.