You really need to read the admin manual a little more.
http://www.thunderstone.com/gw25man/
Here's your answers though:
gw -d~webinator/db -s "select count(*) from html"
gw -d. -s "select Ref from refs where Url = 'www.cakewalk.com/'"
gw -domain=DOMAIN