The 5 foot rule for the water pipe connection first appeared in the 1993 NEC. If the grounding connection was not made within the first five feet from the point where the water service enters the building, it would not appear to be done correctly.