     Count the number of instances for the given model
 
     @param [String] model The model name
-    @param [Function] [callback] The callback function
-    @param [Function] [callback] Callback with (possible) error object and the number of affected objects
+    @param [Function] callback Callback with (possible) error object or the number of affected objects
+    @param [Object] where The filter for where
   ###
   count: (model, callback, where) =>
     debug 'count', model, where if @debug

    @param [String] model The model name
    @param [String] id The models id
    @param [Object] data The model data
    @param [Function] [callback] Callback with (possible) error object and the updated object
  ###
  updateAttributes: (model, id, data, cb) =>
    debug 'updateAttributes', model, id, data if @debug

        else
          @dataSource.once 'connected', () -> @automigrate models cb


exports.ArangoDBConnector = ArangoDBConnector
