already_sent_count count survey- getResponderEmails echo ALREADY SENT

1
2
3
4
5
6
7
$already_sent_count = count($survey->getResponderEmails() );
//echo 'ALREADY SENT: '.$already_sent_count.' ACCOUNT MAX: '.$account_max_num_recip;
if($already_sent_count >= $account_max_num_recip) {
//this account already sent available amount of emails and can't send more for this survey
$this->_redirect("/request/cantaddrecipients");
}