Bugfixes and updates

- Fix an issue that caused counters on all inputs to trigger
- Add `auto` option to `max` setting to detect and use the `maxlength`
attribute of an input