Calculates the length of the Label Dimension from its minimum, maximum and wether it is discrete.

            `resolution`: 
            `units`: output units 
            `conversion_function`: 
            `end_at_end`: additional switch for continuous behaviour

def len(self,resolution=1.0,units=None,conversion_function=convert_time, end_at_end=True):
        """
            Calculates the length of the Label Dimension from its minimum, maximum and wether it is discrete.

            `resolution`: 
            `units`: output units 
            `conversion_function`: 
            `end_at_end`: additional switch for continuous behaviour
        """
        if units is not None:
            resolution = conversion_function(resolution,from_units=units,to_units=self.units)
        else:
            units = self.units
        if self.min is None:
            return int(self.max / resolution)
        if self.max is None:
            return 0
        if units != '1' and end_at_end:
            return int(np.ceil((self.max - self.min) / resolution))
        return int(np.ceil((self.max - self.min) / resolution) + 1)