figuring out the counter