Implement show number of connections in main windows.