                     # remember id of created category for faster parent match
                     if result.body
                       @matcher.addMapping result.body
+                      switch result.statusCode
+                        when 200 then @_summary.updated++
+                        when 201 then @_summary.created++
                     else
                       @logger.warn result
                     Promise.resolve result

    @apiClient = new ApiClient @logger, options
    @matcher = new Matcher @logger, @apiClient, options
    @actionsToIgnore = options.actionsToIgnore

  processStream: (chunk, cb) ->
    @_processBatches(chunk)

    .catch (err) =>
      @logger.error err

  _processBatches: (categories) =>
    @logger.info "Processing '#{_.size categories}' categor#{if _.size(categories) is 1 then 'y' else 'ies'}"
    batchedList = _.batchList categories, 100
    Promise.map batchedList, (categoryList) =>
