People who completed the 33-temple pilgrimage can rub this fish (made of bronze) to mark the end of their abstinence (精進落ち). The pillar on the left also has a koi fish hanging (not visible).
These days, I'm sure most pilgrims do the pilgrimage by car or train. Too far to walk it.