TickerPlant interview question

what is semaphore? how counting semaphore works?