Declare templabelcount as a global in atom().
Merge pull request #14 from catseye/fix-templabelcount

Declare templabelcount as a global in atom().