a person or thing will not continue to live, exist or be successful for much longer
sb's / sth's days are numbered
a person or thing will not continue to live, exist or be successful for much longer
His days as leader of the party are numbered.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition