Move beta counter variables to the per-thread data