There are 5 wires on the O2 and 7 wires in the harness it connects to because there is a calibration resistor sitting inside the connector of the O2. The ECU uses this resistor to calibrate the readings it gets from the O2, that's why there's 7 wires on the car-side harness and only 5 wires on the O2-side.
There may be a How-to on the
other site.