Counter realized as MainFrame