Implemented Collection.totalIndexSize() method.