Binary counter template for the amortized_template.html file.