def duplicate_count(counts):
    """ Return the number of entries in COUNTS with a value of 2 or more. """
    count = 0
    for v in counts.values():
        if v > 1:
            count += 1

    return count