added the counter