Model/ResourceModel/Campaign/Collection.php
public function getNumberOfCampaignsForContactByInterval($email, $updated)
    {
        return $this->addFieldToFilter('email', $email)
            ->addFieldToFilter('event_name', 'Lost Basket')
            ->addFieldToFilter('sent_at', $updated)
            ->count();
    }
public function getNumberOfCampaignsForContactByInterval($email, $updated)
    {
        return $this->addFieldToFilter('email', $email)
            ->addFieldToFilter('event_name', 'Lost Basket')
            ->addFieldToFilter('sent_at', $updated)
            ->count();
    }
public function getNumberOfCampaignsForContactByInterval ( $ email , $ updated ) { return $ this -> addFieldToFilter ( 'email' , $ email ) -> addFieldToFilter ( 'event_name' , 'Lost Basket' ) -> addFieldToFilter ( 'sent_at' , $ updated ) -> count ( ) ; }
Get number of campaigns for contact by interval.

@param string  $email
@param array $updated

@return int
Get number of campaigns for contact by interval .