Php Get Size Of Array Javascript Append