public double totalWords() throws CorruptIndexException, IOException {
    byte[] fieldNorms = reader.norms(field);
    double collectionLength = 0;
    for (int i = 0; i < fieldNorms.length; i++) {
      collectionLength += 1.0d * Normalise.decodeNorm(fieldNorms[i]);
      // System.out.println(field);
    }
    CL = collectionLength;
    avgDL = collectionLength / fieldNorms.length * 1.0d;

    return collectionLength;
  }