update Counter and Factories