Video capture with set timer

I am using CameraX for video capturing. How can I add timer in CameraX preview after pressing the Start video recording button?