test keeping the counter