Function MongoCollection.count
Counts the results of the specified query expression.
ulong count(T)
(
T query
);
Throws Exception if a DB communication error occured.
See Also
http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-{{count%28%29}}