/** * Counts all deleeted and undeleted items * @param array $query_params like EEM_Base::get_all * @param string $field_to_count * @param bool $distinct if we want to only count the distinct values for the column then you can trigger that by the setting $distinct to TRUE; * @return int */ public function count_deleted_and_undeleted($query_params = null, $field_to_count = null, $distinct = FALSE) { $query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params); return parent::count($query_params, $field_to_count, $distinct); }