$count = $db->query_first("select count(*) count query");
$count = $db->query_first("select count(*) AS 'count' FROM table");