Postgres Count Length Of String In C