reader: add NumAvailable function