locking counter