Gets the current unit count of a semaphore.
The function semaphore-count returns the current unit count of the semaphore sem. The value is 0 if the semaphore has no unit remaining.
semaphore
make-semaphore
semaphore-acquire
semaphore-release
semaphore-wait-count
Counting semaphores
LispWorks User Guide and Reference Manual - 20 Sep 2017