def count(s, value):
    """
    for循环版本的遍历
    :param s: 待遍历链表
    :param value: 待查找值
    :return: value的出现次数
    """
    total = 0
    for elem in s:
        if elem == value:
            total = total + 1
    return total