         df.promise.fin -> delete importRequestMap[importId]
         Logger.info 'Import request started', importId
       Promises.runSync ->
-        promise = EntityImporter.fromAsset(args)
+        promise = EntityImporter.fromAsset(args).then (modelMap) ->
+          # Return just a count of the number of imported models.
+          _.size(modelMap)
         if df?
           df.resolve(promise)
           # Cancelling the import should return the import method.


    modelsPromise = Q.all(modelDfs)
    modelsPromise.fail(df.reject)
    modelsPromise.then Meteor.bindEnvironment ->
      requirejs ['atlas/model/GeoPoint'], Meteor.bindEnvironment (GeoPoint) ->
        importCount = modelDfs.length
        resolve = -> df.resolve(importCount)
        Logger.info 'Imported ' + importCount + ' entities'
        missingParentIds = _.keys missingParentsIdMap
        if missingParentIds.length > 0

            Logger.error('Failed to log entity insert failure', e)
          modelDf.reject(err)
        else
          model._id = insertId
          modelDf.resolve(model)
      
      Entities.insert model, callback
      args.counterLog.increment()
