(do_test): Use %zd instead of %d when printing cnt.