The ship's cat that keeps count

How to use 299note

Pick a template and a leg, then calculate.