pub trait Count: Keyed + Mapped + TreeMap { }
Bind generic types to this trait when writing database independend functions.
See similar example on ToqlApi and on count.