add custom counters
switch back to ifndefs
update code style
bugfix
make C++17 compliant
Also hide counter when max value is 1
Initial release