ndims function

Number of Dimensions