diff --git a/reference/mysql_xdevapi/mysql_xdevapi/table/construct.xml b/reference/mysql_xdevapi/mysql_xdevapi/table/construct.xml
index 76dd203ee3..b355ea4630 100644
--- a/reference/mysql_xdevapi/mysql_xdevapi/table/construct.xml
+++ b/reference/mysql_xdevapi/mysql_xdevapi/table/construct.xml
@@ -14,7 +14,7 @@
-
+ Construct a table object.
@@ -24,18 +24,6 @@
&no.function.parameters;
-
-
-
&reftitle.examples;
@@ -43,13 +31,14 @@
getSchema("addressbook");
+$table = $schema->getTable("names");
?>
]]>
-
-
+
+
diff --git a/reference/mysql_xdevapi/mysql_xdevapi/table/count.xml b/reference/mysql_xdevapi/mysql_xdevapi/table/count.xml
index 2b5010d171..65ecbe01cd 100644
--- a/reference/mysql_xdevapi/mysql_xdevapi/table/count.xml
+++ b/reference/mysql_xdevapi/mysql_xdevapi/table/count.xml
@@ -27,7 +27,7 @@
&reftitle.returnvalues;
- The total of rows in the table.
+ The total number of rows in the table.
@@ -38,16 +38,29 @@
count();
+$session->sql("DROP DATABASE IF EXISTS addressbook")->execute();
+$session->sql("CREATE DATABASE addressbook")->execute();
+$session->sql("CREATE TABLE addressbook.names(name text, age int)")->execute();
+$session->sql("INSERT INTO addressbook.names values ('John', 42), ('Sam', 33)")->execute();
+$schema = $session->getSchema("addressbook");
+$table = $schema->getTable("names");
+
+var_dump($table->count());
?>
]]>
+ &example.outputs;
+
+
+
-