Php Count Items In Array Javascript Append To Html