how to compt the number of element with the same class code example Example: javascript find total number of classes document.getElementsByClassName("ClassName").length