diff --git a/reference/mongo/mongocollection/count.xml b/reference/mongo/mongocollection/count.xml
index 6764164754..413845a987 100644
--- a/reference/mongo/mongocollection/count.xml
+++ b/reference/mongo/mongocollection/count.xml
@@ -12,8 +12,7 @@
public intMongoCollection::count
arrayqueryarray()
- intlimit0
- intskip0
+ arrayoptionsarray()
@@ -30,27 +29,69 @@
Associative array or object with fields to match.
-
+
- limit
+ options
- Specifies an upper limit to the number returned.
+ An array of options for the index creation. Currently available options
+ include:
+
+
+
+
+ &Name;
+ &Type;
+ &Description;
+
+
+
+
+ hint
+ mixed
+
+
+ Index to use for the query. If a string is passed, it should
+ correspond to an index name. If an array or object is passed, it
+ should correspond to the specification used to create the index
+ (i.e. the first argument to
+ MongoCollection::createIndex).
+
+ This option is only supported in MongoDB 2.6+.
+
+
+
+ limit
+ integer
+ The maximum number of matching documents to return.
+
+
+ maxTimeMS
+ integer
+
+
+ Specifies a cumulative time limit in milliseconds for processing
+ the operation (does not include idle time). If the operation is not
+ completed within the timeout period, a
+ MongoExecutionTimeoutException will be
+ thrown.
+
+ This option is only supported in MongoDB 2.6+.
+
+
+
+ skip
+ integer
+ The number of matching documents to skip before returning results.
+
+
+
+
-
-
-
- skip
-
-
-
- Specifies a number of results to skip before starting the count.
-
-
-
+
@@ -62,6 +103,18 @@
+
+ &reftitle.errors;
+
+ Throws MongoResultException if the server could not
+ execute the command due to an error.
+
+
+ Throws MongoExecutionTimeoutException if command
+ execution was terminated due to maxTimeMS.
+
+
+
&reftitle.changelog;
@@ -74,11 +127,19 @@
+
+ 1.6.0
+
+ The second parameter is now an options array.
+ Passing limit and skip as
+ the second and third parameters, respectively, is deprecated.
+
+
1.0.7
- Added limit and skip
- parameters.
+ Added limit and skip as
+ second and third parameters, respectively.