def _total_counts(seqs, seqL, aligned=False):
total = Counter()<EOL>if isinstance(seqs, list):<EOL><INDENT>if not aligned:<EOL><INDENT>l = len([total.update(seqL[s].freq) for s in seqs])<EOL><DEDENT>else:<EOL><INDENT>l = len([total.update(seqL[s].freq) for s in seqs if seqL[s].align > <NUM_LIT:0>])<EOL><DEDENT><DEDENT>elif isinstance(seqs, dict):<EOL><INDENT>[total.update(seqs[s].get_freq(seqL)) for s in seqs]<EOL>l = sum(len(seqs[s].idmembers) for s in seqs)<EOL><DEDENT>return total, l<EOL>
Counts total seqs after each step