public function getTotalCount() { try { $amount = (int) $this->db->fetchOne("SELECT COUNT(*) as amount FROM recyclebin " . $this->getCondition(), $this->model->getConditionVariables()); } catch (\Exception $e) { } return $amount; }