Ugly binary counter, in pseudo-C.
Initial!