Please take one tablet a day until the medicine runs out.

Literal

Every-day one-tablet [object-を], medicine [subject-が] run-out [until-まで] drink please.

錠 is the counter for tablets and pills. なくなる ('to run out, to be gone') is used for the medicine supply depleting. 飲んでください is a polite request. Typical medical instruction language.