Php Count Items In Array Javascript Push Data Into An Empty