I\'m looking for a feasible way to get the length of cursor got from MongoDB.
The cursor.count method is deprecated since pymongo 3.7.
The recommended method is to use the count_documents method of the collection.