Fix overlap counts to support long overlaps
Allow restricting the maximum overlap length