How do I make it that when a prop is visible, the counter goes down?

Just use this guide and go to the Draining Power part.

When the “Open Door” button is pressed, it stops the repeater that decrements your counter-linked property.