examples/ioat: handle error when querying number of stats