use cratecheck_arity;
use crateValue;
use ;
/// `COUNTIF(range, criterion)` — count elements in `range` that match `criterion`.
///
/// `range` may be a `Value::Array` (flattened) or a scalar.
/// `criterion` supports numeric comparisons (`>N`, `>=N`, `<N`, `<=N`, `<>N`, `=N`),
/// exact text match (case-insensitive), and wildcard patterns (`*`, `?`).