Only count trough the last digit

rtzur
add templates