Fix count before gc