title: Show total number of rows in pouchdb
body: <p>I have some data in the pouchdb, I want to show the total rows in pouchdb, how can I do it?</p>
  
  <pre><code>angular.module("pouchapp", ["ui.router"])
  
  .run(function($pouchDB) {
      $pouchDB.setDatabase("dbinfo");
      //console.log($pouchDB.length); //show total rows in pouchdb   
  });
  
  .service("$pouchDB", ["$rootScope", "$q", function($rootScope, $q) {
      var database;
  
      this.setDatabase = function(databaseName) {
          database = new PouchDB(databaseName);
      }
  }]);
  </code></pre>