cmos divide by n counter