Refactor getXRunCount to return ResultWithValue
6 files changed