def byte_count
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/core.bend as Coreimport Base
978def byte_count(bytes: List<&2, U32>, acc: Nat) -> Nat:
979 match bytes:
980 case Nil{}:
981 acc
982 case h <> t:
983 byte_count(t, 1n+acc)