Count Repeated Characters In Array Postgres