@classmethod
def arraySize(cls, value, typeCode=None):
    """Given a data-value, calculate dimensions for the array"""
    dims = 1
    for base in cls.types(value):
        length = getattr(base, '_length_', None)
        if length is not None:
            dims *= length
    return dims
