s4:wrepl_server - change also here the counter variables to "unsigned"