|Logically, echo %vari%count%% should result in a|
Logically, it should result in the contents of variable %vari%, the word count, and a single %. Win7's CMD confirms this.
I'm not sure exactly what this'll do, but it typically ends up with setting every element in your pseudo-array to the letter a.
Also, I don't see you enabling delayed expansion, but I'm assuming it is turned on.
How To Ask Questions The Smart Way