count digits changed