Everytime you remove the coffee grounds container, unless it is reinserted within a few seconds, or if you remove the side door to get access to the brewing unit, the machine resets the coffee grounds counter. Make sure you empty the grounds container everytime you do either of these two operations, before reinserting it.