code: public int getNumObsFeats() {
          int count = 0;
          for (FactorTemplate ft : fts) {
              count += ft.getAlphabet().size();
          }
          return count;
      }
docs: Gets the number of observation function features.