How to use count(*) in Zend Select Statement

public function getCount() 
{
    $select = $this->select();
    $select->from($this, array('count(*) as amount'));
    $rows = $this->fetchAll($select);

    return($rows[0]->amount);        
}
Scroll to Top