fix counter for 16MHz