Just measure how many beans the machine uses per serving, and have a small kitchen scale ready to weigh exactly the required amount before throwing it in. Let it run dry for a sec afterwards and stop if you want to make absolutely sure there's nothing stuck in the chute.
Comes with the added bonus of being able to store the beans in the fridge instead of leaving them in the hopper for days at a time.