Fix undefined name 'worncount'
Merge pull request #1 from mnaberez/fix-warncount

Fix undefined name 'worncount'