Php Count Items In Array Javascript Pushstate In Jslinux