Counter initialization
Most initializations working