Count All Elements In Array Javascript