pub fn count<D: Dimension>(
a: &StringArray<D>,
sub: &str,
) -> FerrayResult<Array<u64, D>>Expand description
Count non-overlapping occurrences of sub in each string element.
Returns an Array<u64, D> preserving the input shape.
ยงErrors
Returns an error if the internal array construction fails.