CountADBs
You can use theCountADBsfunction to determine how many ADB devices are connected to the bus.
FUNCTION CountADBs: Integer;DESCRIPTION
TheCountADBsfunction returns a value representing the number of devices connected to the bus; it determines this information by counting the number of entries in the ADB device table.