add counting Semaphores to library.