In addition, the question was "why using hash table here when the original information is stored in an ini file?", because you could access the information with ini's routine.
Another question was "what is the point of storing each data in the same var (the error prone part) if the only thing you want to know is the number of token in that var ?", because, again, you already have that information with $hget(,0).item, or since hash table are not necessary here, $ini(,$2,0)