code: def get_raw_counts(self):
          words = []
          labels = []
          words_said = set()
          for unit in self.parsed_response:
              word = unit.text
              test = False
              if self.type == "PHONETIC":
                  test = (word.startswith(self.letter) and
                          "T_" not in word and "E_" not in word and "!" not in word and
                          "FILLEDPAUSE_" not in word and
                          not word.endswith('-') and
                          word.lower() in self.english_words)
              elif self.type == "SEMANTIC":
                  test = (word in self.permissible_words)
              if test:
                  self.measures['COUNT_total_words'] += 1
                  self.measures['COUNT_permissible_words'] += 1
                  if any(word == w for w in words_said):
                      self.measures['COUNT_exact_repetitions'] += 1
                      labels.append('EXACT REPETITION')
                  elif any(stemmer.stem(word) == stemmer.stem(w) for w in words_said):
                      self.measures['COUNT_stem_repetitions'] += 1
                      labels.append('STEM REPETITION')
                  else:
                      labels.append('PERMISSIBLE WORD')
                  words_said.add(word)
                  words.append(word)
              elif word.lower().startswith('e_'):
                  self.measures['COUNT_examiner_words'] += 1
                  words.append(word)
                  labels.append('EXAMINER WORD')
              elif word.endswith('-'):
                  self.measures['COUNT_word_fragments'] += 1
                  words.append(word)
                  labels.append('WORD FRAGMENT')
              elif word.lower().startswith('filledpause'):
                  self.measures['COUNT_filled_pauses'] += 1
                  words.append(word)
                  labels.append('FILLED PAUSE')
              elif word.lower() not in ['!sil', 't_noise', 't_cough', 't_lipsmack', 't_breath']:
                  self.measures['COUNT_total_words'] += 1
                  self.measures['COUNT_asides'] += 1
                  words.append(word)
                  labels.append('ASIDE')
          if not self.quiet:
              print
              print "Labels:"
              print_table([(word,label) for word,label in zip(words,labels)])
          self.measures['COUNT_unique_permissible_words'] = \
              self.measures['COUNT_permissible_words'] - \
              self.measures['COUNT_exact_repetitions'] - \
              self.measures['COUNT_stem_repetitions']
          if not self.quiet:
              print
              print "Counts:"
              collection_measures = [x for x in self.measures if x.startswith("COUNT_")]
              collection_measures.sort()
              if not self.quiet:
                  print_table([(k, str(self.measures[k])) for k in collection_measures])