counter formatting