@classmethod
def arraySize(cls, value, typeCode=None):
    """Given a data-value, calculate dimensions for the array"""
    try:
        return value.__class__.__component_count__
    except AttributeError as err:
        dims = 1
        for length in cls.dims(value):
            dims *= length
        value.__class__.__component_count__ = dims
        return dims
