Changing type for counting to uintmax_t