Count Duplicate Elements In Array Javascript Append Function Excel