Count length when appending reference.
Need to seek for every chunk: load the next one.