def count_word
import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitsetimport Base
254# A zero word contributes nothing and is skipped.
255def count_word(+w: U32, +acc: Nat, zero: Bool) -> Nat:
256 match zero:
257 case True{}:
258 acc
259 case False{}:
260 word_count_8(4n, w, acc)