Skip to content

Commit

Permalink
minor: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Aug 18, 2009
1 parent 6894f5b commit 7787704
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymongo/collection.py
Expand Up @@ -367,6 +367,8 @@ def find(self, spec=None, fields=None, skip=0, limit=0,
_sock=_sock)

def count(self):
"""Get the number of documents in this collection.
"""
return self.find().count()

def _gen_index_name(self, keys):
Expand Down

0 comments on commit 7787704

Please sign in to comment.