fix: Write the compress repeat char count as a char instead of an int.
refactor: rename count and count_ptr to size

These variables refer to the input file size. It is easy to confuse them
with the rle repeat char count.