Transform-sensitive trait frequency counter (source code)

= Transform-sensitive trait frequency counter

A counting <trait> that increments the original argument to insertion assumes that subsequent <traits> store that argument unchanged. A later capitalization <trait> breaks the assumption: the counter can record lowercase `a` while the document stores uppercase `A`. To maintain counts of actual document contents across such a composition, inspect the stored character after delegation or constrain the legal mixin order. Correctness for one base implementation does not establish correctness under every <trait> combination.