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