added last reached digit count