All the output works correctly

That is always an amazing sign
The counting in the answer to example 12 seems to be off.  I've
verified, my program does the counting correctly in this case.