lib: add IWINFO_OPMODE_COUNT and use it for IWINFO_OPMODE_NAMES