s4:partition LDB module - change counter variables to "unsigned" where appropriate