rem: int get_sem_count(sem_id id, int32* thread_count)
add: status_t get_sem_count(sem_id id, int32* thread_count)
context: int get_sem_count(sem_id id, int32* thread_count){	int slot;	int state;	if (sems_active == false)		return B_NO_MORE_SEMS;	if (id < 0)		return B_BAD_SEM_ID;	if (thread_count == NULL)		return EINVAL;	slot = id % MAX_SEMS;	state = disable_interrupts();	GRAB_SEM_LOCK(sems[slot]);	if (sems[slot].id != id) {		RELEASE_SEM_LOCK(sems[slot]);		restore_interrupts(state);		dprintf("sem_get_count: invalid sem_id %d\n", id);		return B_BAD_SEM_ID;	}	*thread_count = sems[slot].count;	RELEASE_SEM_LOCK(sems[slot]);	restore_interrupts(state);	return B_NO_ERROR;}