import { useMemo as a } from "react";
import { getValueByPath as c } from "../utils/formatUtils.js";
const d = (r, l, s = {}) => {
  const { equals: t, match: o } = s;
  return a(() => r.reduce((n, f) => {
    const u = c(f, l);
    let e = !1;
    return typeof o == "function" ? e = o(u) : t !== void 0 ? e = u === t : e = u != null, e ? n + 1 : n;
  }, 0), [r, l, t, o]);
};
export {
  d as default
};
//# sourceMappingURL=useCount.js.map
