Habari\Comments::count_by_name PHP Method

count_by_name() public static method

returns the number of comments attributed to the specified name
public static count_by_name ( string $name = '', integer | string $status = 'approved' ) : integer
$name string a commenter's name
$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 name
    public static function count_by_name($name = '', $status = 'approved')
    {
        $params = array('name' => $name, 'count' => 'name');
        if (false !== $status) {
            $params['status'] = $status;
        }
        return self::get($params);
    }