How to count root process instances after a cleanup?

I need to identify how many root process instances have been created from jan 1st until now. My process TTL is 30 days.
Is there a way I can count how many root process instances have been created in this period after a cleanup?