Php Get Size Of Array Javascript Concat Objects