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;
    }
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.
Compute the total number of elements .