The length of HTMLAllCollection for JS returns the number of elements in the collection.
collection.length