I'm printing digits one at a time so that user knows what count he is entering. Wouldn't displaying the count only after pressing the enter key be inappropriate?
The block of code I was referring to only happened when the 'D' key was pressed. Printing each character entered, as it is entered, IS appropriate. Printing them all again, one at a time, when the 'D' key is pressed, isn't.