use engine.index.length to get length of index file for #70
0.8.4