Habari\Comments::count_by_url PHP Method

count_by_url() public static method

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