Php Count Similar Items In Array Javascript Length W3schools