public function count($cb, $p = [])
{
$p['col'] = $this->name;
$this->pool->findCount($p, $cb);
}
/** * @param $ip * @param callable $cb */ public function getRecentSignupsFromIP($ip, $cb) { $this->accounts->count($cb, array('where' => array('ip' => (string) $ip, 'regdate' => array('$gt' => time() - 3600)))); }