An investigation of cosmic rays underground using a scintillator stack: I. The apparatus