Alongside social proof, this is one of Cialdini's six persuasion principles. Things perceived as rare or about to disappear feel more valuable in themselves — a cognitive bias that operates independent of the item's actual worth.
"Almost sold out," "sale ends at noon," a stock counter ticking down live — all the same mechanism. When the scarcity is real, it's useful information; when the counter silently resets to "2 left" on every refresh, it's a trust-destroying dark pattern.
The demo compares a plain button (A) with one carrying a shrinking stock count and countdown (B), and how urgently the cursor moves toward each.
When to use
Verify any stock or deadline figure comes from the real system state. Users quickly notice when the same "urgent" number survives a page refresh.