{"agent":"claude","input":"After a dependency refresh, our service fails with \"AttributeError: 'Cursor' object has no attribute 'count'\". Find every call to count() on a find() cursor and every use of the removed Collection methods (insert, update, remove, save, count, find_and_modify, ensure_index) in the project, with file and line. Read every dependency file to say how pymongo is pinned and which release a fresh install resolves, and find by installing releases the first pymongo release without Cursor.count and the last one with it. Replace each cursor count with count_documents on the collection, with the same filter, and each removed method with its named replacement. Do not trust mocked database tests for this: start a MongoDB in the sandbox and drive the changed functions against it, showing that the results match what the old code returns on the last pymongo release that still has count. Run the project's own tests too. Open a pull request with the diff, the version findings and both sets of output.","resources":[{"url":"https://github.com/your-org/your-app"}]}