Get Number Of Elements In Array Javascript Methods