private/Functions/Axis/Get-AxisNumOfChannels.ps1

#$c.attribute.value
#/stw-cgi/attributes.cgi/attributes/System/Limit/MaxChannel

Function Get-AxisNumOfChannels {
    [cmdletBinding()]
    Param(
        [Parameter()]
        [hashtable]$Object
    )
    
    <#
    Object Definition:
    @{
        IP = [String(Mandatory)]
        Credential = [PSCredential(Mandatory)]
    }
    #>


    #Thankfully this is easy
    $CamCmd = @{
        URI = "https://$($Object.IP)/stw-cgi/attributes.cgi/attributes/System/Limit/MaxChannel"
        Credential = $Object.Credential
    }
    return (Invoke-AxisCommand @CamCmd).attribute.value
}