public static int countSize(ListNode node){
        int size = 0;
        if(node!=null){
            
            while(node.next!=null){
                node = node.next;
                size++;
            }
        }
        return size+1;
    }