code: function(count) {
                  var _count = count;
                  var ctxArgs = Array.prototype.slice.call(arguments, 1);
  
                  // If the step count is zero, resolve immediately.
                  if (_count === 0) {
                      deferredObject.resolve.apply(null, ctxArgs);
                  }
  
                  return {
                      /*
                       * Indicates that a specific step was completed. The
                       * promise will be treated as resolved if this method
                       * is invoked a given number of times.
                       */
                      stepComplete: function() {
                          var ca
                          _count--;
                          if (_count === 0) {
                              var args = Array.prototype.slice.call(arguments, 0);
                              deferredObject.resolve.apply(null,
                                  ctxArgs.concat(args));
                          }
                      },
  
                      /*
                       * Rejects the deferred object without waiting for any
                       * further processing.
                       */
                      reject: function() {
                          var args = Array.prototype.slice.call(arguments, 0);
                          deferredObject.reject.apply(null, ctxArgs.concat(args));
                      }
                  }
              }
docs: /*
  Generates a callback that resolves/rejects the deferred after a
  specified number of steps have been completed, indicated by the
  invocation of stepComplete().