MDL-36804 Assign history - fixed the count_submissions and friends