Php Number Of Values In Array Javascript Length Method In Json Format