public Integer pop() throws EmptyException {
        counter -= 1;
        
        if (counter < 0) {
            counter = 0;
            throw new EmptyException();
        }
        
        return table[counter];
    }