import * as tsplus_module_1 from "@effect/core/stream/Sink/operations/foldLeft";
/**
 * A sink that counts the number of elements fed to it.
 *
 * @tsplus static ets/Sink/Ops count
 */

export function count(__tsplusTrace) {
  return tsplus_module_1.foldLeft(() => 0, (acc, _) => acc + 1, __tsplusTrace);
}
//# sourceMappingURL=count.mjs.map