I will make another version where it stops counting digits when the confidence value is at a specific point.