code: private void updateEndCountText() {
          final String END_COUNT_MARKER = "%d";
          String endString = mResources.getQuantityString(R.plurals.recurrence_end_count,
                  mModel.endCount);
          int markerStart = endString.indexOf(END_COUNT_MARKER);
  
          if (markerStart != -1) {
              if (markerStart == 0) {
                  Log.e(TAG, "No text to put in to recurrence's end spinner.");
              } else {
                  int postTextStart = markerStart + END_COUNT_MARKER.length();
                  mPostEndCount.setText(endString.substring(postTextStart,
                          endString.length()).trim());
              }
          }
      }
docs: Update the "Repeat for N events" end option with the proper string values
  based on the value that has been entered for N.