Model/Behavior/SoftDeleteBehavior.php
public function purgeDeletedCount($model, $expiration = '-90 days') {
		$this->softDelete($model, false);
		return $model->find('count', array(
				'conditions' => $this->_purgeDeletedConditions($model, $expiration),
				'recursive' => -1,
				'contain' => array()
			)
		);
	}
public function purgeDeletedCount($model, $expiration = '-90 days') {
		$this->softDelete($model, false);
		return $model->find('count', array(
				'conditions' => $this->_purgeDeletedConditions($model, $expiration),
				'recursive' => -1,
				'contain' => array()
			)
		);
	}
public function purgeDeletedCount ( $ model , $ expiration = '-90 days' ) { $ this -> softDelete ( $ model , false ) ; return $ model -> find ( 'count' , array ( 'conditions' => $ this -> _purgeDeletedConditions ( $ model , $ expiration ) , 'recursive' => - 1 , 'contain' => array ( ) ) ) ; }
Returns number of outdated softdeleted records prepared for purge

@param object $model
@param mixed $expiration anything parseable by strtotime(), by default '-90 days'
@return integer
Returns number of outdated softdeleted records prepared for purge