Motor - Count time - Change direction

Please post your best attempt at combining the two sketches and we can start from there.

Steve