Increments a string that ends in a number

def increment_title(title):
    """
    Increments a string that ends in a number
    """
    count = re.search('\d+$', title).group(0)
    new_title = title[:-(len(count))] + str(int(count)+1)
    return new_title