dap4/d4core/src/main/java/dap4/core/util/Odometer.java
public long
    totalSize()
    {
        long size = 1;
        for(int i = 0; i < this.rank; i++) {
            size *= this.slices.get(i).getCount();
        }
        return size;
    }
public long
    totalSize()
    {
        long size = 1;
        for(int i = 0; i < this.rank; i++) {
            size *= this.slices.get(i).getCount();
        }
        return size;
    }
Compute the total number of elements.