1 let pass = document.getElementById('pass-one');
2 let count = document.getElementById('counter');
3 let maxLength = 10;
4 pass.setAttribute('maxlength', maxLength);
5 pass.addEventListener('input', () => {
6 count.innerText = `${pass.value.length}/${maxLength}`;
7 })