private/Functions/Axis/Get-AxisNumberOfChannels.ps1

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

Function Get-AxisNumberOfChannels {
    [cmdletBinding(
        #DefaultParameterSetName='Preset',
        #SupportsShouldProcess = $true,
        ConfirmImpact='high'
        )]
    Param(
        [Parameter(
            Mandatory=$true
        )]
        [String]$IP,

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