questions looks clear as day to me. He has a psql table, and he's using perl probably for a cgi script. He wants to use the # of rows value inside his cgi script. But he doesn't know how to find this out. I'd like to know too.