turning the int counter into an unsigned int in bit_utils.c