Oscillating random walk on Z driven by its occupation time at zero