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