count_pnp_devices
extern int count_pnp_devices(const char *devid);
nbus = count_pnp_devices("PNP0A03");