get a size of multi dimensional array