Correct byte counting for > 2^64 bytes.

There was a bug with byte counting that affected
input of > 2^64 bytes in length.