Jumlah dokumen di MongoDB

exports.success = async function(req, res, next){
res.json(await Message.find().countDocuments());
}
Javasper