They can very easily locate the pharmacies that still has the masks in stocks. The number is refreshed every three minutes or so. Although the numbers may not be entirely real-time, it’s still very useful. If you see a pharmacy is runs out of stock, it’s out of stock. People don’t waste their time going to the pharmacy that doesn’t have the masks.