public void run(){
        int clientCount = -1;
        while(true){
            Iterator<ServerThread> it = connections.iterator();
            while(it.hasNext()){
                ServerThread conn = it.next();
                if(!conn.isAlive()){
                    it.remove();
                    continue;
                }
                if(conn.hasRequest()){
                    processRequest(conn);
                }
            }
            if(clientCount != connections.size()){
                clientCount = connections.size();
                System.out.println("There are currently "+clientCount+" clients connected.");
            }
            int millisecondDelay = 50;
            try{Thread.sleep(millisecondDelay);}catch(InterruptedException e){}
        }
    }