select COUNT(COLUMN_NAME) [NoOfColumns] from INFORMATION_SCHEMA.COLUMNS where Table_Name= 'TableName'
Login to post response