Return the maximum number of stack elements needed to satisfy this script non-malleably.
Declared in <script/miniscript.h>
<script/miniscript.h>
std::optional<uint32_t> GetStackSize() const;
The stack element count, or std::nullopt if no satisfaction exists.