ndim function

Get the Number of Dimensions of an Array