Quantum oscillations and stacked quantum Hall effect in HfTe5