def Layer.count
import bendtorch@1.3.0.0/main.bend as Bendtorchimport Base
158def Layer.count(-P: Type, -X: Type, -Y: Type, -S: Type, l: Layer<P, X, Y, S>) -> U32:
159 match l:
160 case Layer{fwd, bwd, step, zeros, dump, load, store, count}: count(Unit{})