I\'m looking for a feasible way to get the length of cursor got from MongoDB.
It's actually as simple as
len(list(cursor))
Note that it will however consume the cursor.