simplify the use of the counter