The best I could do is
$nm = new Zend_Db_Table('emp'); $nm->_primary = 'your primery key column' $count = $nm->select()->from($this->_name, 'COUNT(*)')->where("1 = 1")->query()->fetch();
you set your primary key and change condition