MongoDB-NodeJS-Driver, DeprecationWarning: Collection.Count está en desuso

db.collection("posts").countDocuments(
  {}, // filters
  {}, // options
  function(error, result) {
    console.log(result);
  }
);
Mappy Show