changed the counter to 0