Count Data In Array Javascript Append To Object