function evCount() {
var caracter = document.querySelector("#textarea");
var counter = document.querySelector("#counter");
var max = caracter.maxLength;
counter.innerHTML = max - caracter.value.length;
if(counter.innerHTML == 0) {
counter.style.display = "none";
} else {
counter.style.display = "block";
}
}