Implement Countable and Iterator interfaces in ListResult.