Javascript Count Array Items Php Download Version