Implementing a day counter
I'm creating a datapack that involves tracking the number of days that have passed in-game. Currently, I'm planning on doing this by increasing a scoreboard every tick and having it reset and up the day counter when it hits 24000. I don't have a frame of reference, so is this a terrible idea or not? What would be the most optimal way to have an event every certain number of days?