public function paidStatementsCount() { return PayeePayment::paidWherePayeeCode($this->code)->count(); }