leCounterServerImpl // // public class SimpleCounterServerImpl extends UnicastRemoteObject implements SimpleCounterServer { private int iCount; public SimpleCounterServerImpl() throws java.rmi.RemoteException { iCount = 0; } public int getCount() throws RemoteException { return ++iCount; } public static void main(String args[]) { System.setSecurityManager(new RMISecurityManager()); try { SimpleCounterServerImpl server =