It is possible to find the number of rows in a table:
select count(*) from tablename
Is it possible to find the number of columns in a tabl
db2 'describe table "SCHEMA_NAME"."TBL_NAME"'