You are printing both the input and the count. If I break it up like this...
H 344
T 343
T 342
P 341
/ 340
1 339
. 338
1 337
336
2 335
As you read the characters "HTTP/1.1", the count decreases.
You are printing both the input and the count. If I break it up like this...
H 344
T 343
T 342
P 341
/ 340
1 339
. 338
1 337
336
2 335
As you read the characters "HTTP/1.1", the count decreases.