adding the counter