def _check_count(counter):
    """
    Get the most common dimension, and check if at least two thirds of the
    values agree.
    """
    dim, count = counter.most_common(1)[0]
    if count >= (2 / 3) * sum(counter.values()):
        return True, dim
    else:
        return False, dim