How to create single stat if certificate expiry is less than 50 days

Hi All,

I have created a dashboard to show the jks certificate details like below…

Jks-file-name. Cert-name. Days-until-expiry
Abc. AAA. 800
Xyz. BBB. 300
Def. Ccc. 20

Now I want to create a single stat to show the 1)count of certs expiring soon <50 days and
2) count of certs long expiry>50 days.

Please help on this…