fix a bug of digitCount