internal StackNode(object value, StackNode prev = null) { Value = value; Prev = prev; Count = prev != null ? prev.Count + 1 : 1; }