Pulse count value setting or correcting