Fast index

Calling tellg() results in extremely slow indexing on a slow latency NFS. Just recording the number of characters that was read is much faster.