That is pretty atrocious. All the initializing setq's could just be init forms in the let.
Now you might think that this is also unidiomatic:
(setq totalCnt (1+ totalCnt))
Turns out, though, that Elisp doesn't have modify macros, except in the CL compatibility package.What Xah is doing is the same as the accepted SO answer for incrementing a local variable:
http://stackoverflow.com/questions/6858894/how-to-increment-...