提示count方法已经过时了,虽然能查出结果,但是受不了看见报错
改成如下它推荐的方法就可以了
count = mycollection.count_documents({"contentId": contentId})