Function Stack.count
Get the number of items on the stack. It's typed as a ulong to prevent introducing platform-dependent behavior if the count ends up being used in any opcodes (for example hashing).
ulong count() pure nothrow @nogc @safe const;
Returns
the number of items on the stack