`countDim` was actually a Set method, fixing references to dimensions and maxDimensions.