private void setMenuItemLabel(final Menu menu, final int menuId, @StringRes final int resIdSelection, @StringRes final int resId, final int checkedCount) {
        final MenuItem menuItem = menu.findItem(menuId);
        if (menuItem == null) {
            return;
        }

        final boolean hasSelection = checkedCount > 0;
        if (hasSelection) {
            menuItem.setTitle(res.getString(resIdSelection) + " (" + checkedCount + ")");
        } else {
            menuItem.setTitle(res.getString(resId));
        }
    }
Menu items which are not at all usable with the current list type should be hidden.
Menu items which are usable with the current list type but not in the current situation should be disabled.
main/src/main/java/cgeo/geocaching/CacheListActivity.java