Count Elements In Array Js