Support session.result.get_num_results