Revised support for storing the number of variables, so that frames will be properly sized.

Signed-off-by: Christian Gunderman <christian@sonofboss.cwru.edu>