Added counter to MainWindow::toggleProgressIndicator.