Postgresql Count Json Array Length