The number of variables is limited to 64k for Global variables, and local variables are limited to the amount of ram on your system.

Note that 64k includes the name and value of each variable