Silly mistake in the code (which everyone should have spotted!)...

Change the two lines (one in each LED control block)...

If LedACounter>1 then...

and

If LedBCounter>1 then...

to both be >0 and not >1

Runs like a trooper...

(I have edited my posted code to reflect the corrections, just copy and run)