Unfortunately I don't have the solution to repair your chain meter
counter in Panama... but, until it will be repaired, may I suggest a
small and inexpensive product called " Chain Rainbow" manufactured by
an Italian company "Osculati" (www.osculati.com)
They are small plastic "diabolos" (8 of each color) of very bright
colors, inserted inside each chain link, every 5 meters and this will
allow you to see how much chain you had paid out..
They are very efficient and as a liveaboard sailor, I've been using
them continuously since 4 years now..
Fair winds and peaceful anchorages,