How do I make a reload bar for my game?

For one of my games I want to add an energy bar that reloads in every 5 seconds after the main player punches or shoots projectiles. How do i make one?

If you know how to make health bar, then do it just like make a health bar but little bit different.