Detectors for High Count Rate Measurements with a Compensation for MPPC Gain Dependence on Temperature