make the count work