Php Count Elements In Json Array Length In C