code: function count(req, res, next) {
    User.count(function(err, count){
      if (err) return next(err);
      req.count = count;
      next();
    })
  }
docs: this approach is cleaner, less nesting and we have the variables available on the request object