def getSize(Data):
    """ Return the integer size of the provided dataset.
    """
    if Data is None:
        return 0
    elif hasattr(Data, 'nDoc'):
        return Data.nDoc
    else:
        return Data.nObs