pub fn list_length<B, T>(list: &[B]) -> usizewhere B: Borrow<T>, T: ?Sized + Encodable,
Calculate the length of a list.