Update index.js

add count functions

    obj.count = function() {
      var args = Array.prototype.slice.call(arguments)
        , callback = args.pop() || function () {};
      adapt = model.getAdapterForModel(name);
      if (!adapt) {
        throw new Error('Adapter not found for ' + name);
      }
      else {
        if (adapt.name == 'postgres') {
          throw new Error('Only mongodb adapters support.');
        }
      }
      return adapt.count(model[name],callback);
    }
Added LevelDB support

Plain async LevelDB support
Merge pull request #105 from robertkowalski/level

Added LevelDB support
Add getter for Memory adapter datastore
Add data-writer stub
Unit test for item creation
A few more tweaks to Memory adapter to allow it to be subclassed as Filesystem adapter
Filesystem adaper, to be new default
Fix prototype pollution
Added filesystem adapter to the registry
Merge pull request #96 from tarnazar/patch-1

Update index.js
Implement query-based count method, starting with Mongo
Implement `count` for memory/filesystem
Implement `count` for other MR stores
Docs for `count`
Spelling corrections
Merge pull request #108 from paulbjensen/patch-1

Spelling corrections
Begin pulling shit out of Postgres adapter for SQLite
Pulled out statement methods into base SQL adapter, implement in SQLite adapter
SQLite tests, get setup, fixture create/destroy working