code: function(field, distinct) {
      var self = this.aggregate('count', field || '*')
      self.setInternal('count_distinct', distinct || false)
      return self
    }
docs: Count the number of records in the database (SQL: `COUNT()`)
  
  @class Model
  @method count
  @param {string} field - Optional field name. (Default: `*`)
  @param {boolean} distinct - Optional: DISTINCT(field). (Default: false)
  @return {Model}
  @see Model.exec()