Count All Elements In Array Javascript Mdn Setinterval