function countByAccount($account) { return MailAccountUsers::count(array('`account_id` = ?', $account->getId())); }