I will say, even though I don't personally keep track of encounters per day, I don't knock anyone who does. I think both ways can produce fun games!
For me as a DM, trying to manage the number of encounters per day just isn't fun. It is fun for me to place various threats and pressures on the characters and see how they react. Sometimes they get to rest a bunch. Sometimes they don't!
As I stated before, I like to focus my energy on consequences for resting. I think it's natural that players want to try to be as strong as they can for each encounter, and the tool 5e D&D gives them for this is resting. So like any good player choice, I just try to communicate the consequences of their decision to rest.
I might say, "You all have really cleared out the threat in this area. Your characters sense it would be safe, with minimal security measures, to rest here overnight."
Or I might say, "You can definitely try to rest here. You get the sense that there's a lot of movement in the dungeon, and it would be likely that you might get spotted."
When I have a player who can cast Tiny Hut, I'll communicate something like:
"Even though you're going to be safe, it's likely the Tiny Hut will be seen. You can rest safely, but your characters probably assume that the enemy will be gathering information on you, or shoring up their own defenses. If you press on now, you would have more of a chance to be at advantage in upcoming fights."
But that's just playing to what I feel are my strengths as a DM. For other DM's, using encounters per day is a good way to challenge their players and create balanced adventures.