Currently, zes-ras-state-t has static array for category of errors for which counter info is populated here: uint64_t category[ZES_MAX_RAS_ERROR_CATEGORY_COUNT]
this makes it hard to add any new RAS error categories as we would need to also update ZES_MAX_RAS_ERROR_CATEGORY_COUNT .
having more flexible mechanism where users can discover number of error categories for which state info is available makes it extensible for future as well when new categories are to be added and provides stable interface to user