def good_suffix_match(small_l_prime):
    """
    Given a full match of P to T, return the amount to shift as determined by
    good suffix rule
    :param small_l_prime: l' array
    :return: the amount of shift when fully matched
    """
    return len(small_l_prime) - small_l_prime[1]