Shot-noise-limited spin measurements in a pulsed molecular beam