Domanda di colloquio di SeaChange

How would you use a countable semaphore?