Broadband photon-counting Raman spectroscopy in short optical waveguides