public int EncodeTo(Stream stream)
 {
     var size = stream.Write7BitEncodedLong(Position);
     size += stream.Write7BitEncodedLong(Count);
     return size;
 }