Does anyone know how i can read the $COLUMNS and $ROWS in a console application in Linux?

When i try
Code:
for i := 0 to GetEnvironmentVariableCount do
                    Writeln(GetEnvironmentString(i));
COLUMNS and ROWS are not listed.

I would like to somehow execute "echo $COLUMNS" and pipe the result back to the program.