def check_overlap(samp1, samp2):
    """
    Compute the overlap between two samples
    """
    nmatch = 0
    for cname in samp2:
        if cname in samp1:
            nmatch += 1
    return nmatch