change the count code