internal/Get-VulnerabilityCount.ps1

function Get-VulnerabilityCount {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$true)]
        [String]
        $filePath
    )
    begin {

    }    
    process {
        $html = ConvertFrom-Html -Path $filePath
        foreach($span in $html.Descendants("span")) {
            if(($span.Attributes | Where-Object Value -eq "vulnerableCount")) {
                $span.InnerText
            }
        }
    }    
    end {
    }
}