Change int to uint32
Change int to uint32_t on counts