function sample = end(w, k, n)

sample = size(w.memmap.data, k);
