Number of columns in a PostgreSQL table.
select count(*) from information_schema.columns where table_name='x';