hi guys is it possible to automate following tasks to happen on daily basis ?

Recalculate the number of listings for each category
Rearrange category levels

Probably a cron job ?