Con pymongo puoi usare cursor.count(); se vuoi rispettare limit e skip imposta applySkipLimit a True.