Habari\Comments::count_by_email PHP Method

count_by_email() public static method

returns the number of comments attributed ot the specified email
public static count_by_email ( string $email = '', integer | string $status = 'approved' ) : integer
$email string an email address
$status integer | string A comment status value, or false to not filter on status (default: 'approved')
return integer a count of the comments from the specified email
    public static function count_by_email($email = '', $status = 'approved')
    {
        $params = array('email' => $email, 'count' => 'email');
        if (false !== $status) {
            $params['status'] = $status;
        }
        return self::get($params);
    }