Fix term counters to be of type zint. Fix several printfs of zint.