title: Get current stack size in FORTH
body: <p>How can I get the number of elements currently held in the stack in Forth?</p>
  
  <p>I ask this because I want to make a function that prints out all the elements of the stack, something like:</p>
  
  <pre><code>: pop_all 0 do . loop ;
  1 5 10 4 5
  5 pop_all
  </code></pre>
  
  <p>But now I need to manually specify the stack size when I call it.</p>