added optional autoupdate to counter
Merge remote-tracking branch 'origin/master'