I believe you’re looking at old code - the 0.4.x firmware supports an unbounded number of functions and variables. (The upper limit is determined by how many of these can be contained in a single message to the cloud.)
How many functions/vars do you need?