function getcount($connect, $table, $condition = "", $limit = "") { $db = new CTextDB(); return $db->count($condition, $table); }