improve countsformat conversion (gzip, streamed)