def dedup_unique(molecular_barcodes):
    """
    
    Unique duplicate removal

    Count all unique UMIs.

    Parameters
    ----------
    molecular_barcodes : dict
        dictionary with UMIs as keys and UMI counts as values

    Returns
    ----------
    int
        Number of UMI groups

    """
    return len(molecular_barcodes.keys())