fixed bug regarding count in Semaphore.java

count variable may not be decrememnted and incremented if the value drops below 0