CPLD and Arduino - a good mix

@pito. would you be willing to share the CPLD code? Would save a lot of people the headache of redoing (maybe wrong) the counter.

Thanks!