Making copy of loop count buffer
malloc to loop_count_base now
Added more test iterations