fix actual_result_count definition