got the counter working