how to count document get class name element code example
Example: javascript get all classes
var allHiddenElements = document.getElementsByClassName("hidden");
var allHiddenElements = document.getElementsByClassName("hidden");