Improving the dynamic range of single photon counting kinetic inductance detectors