Php Count Similar Items In Array Javascript Append To Body