"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.count = void 0;
const reduce_js_1 = require("./reduce.js");
function count(predicate) {
    return (0, reduce_js_1.reduce)((total, value, i) => (!predicate || predicate(value, i) ? total + 1 : total), 0);
}
exports.count = count;//# sourceMappingURL=http://go/sourcemap/sourcemaps/31e8d61c448c7472e371505838a0fe34083dad50/node_modules/rxjs/dist/cjs/internal/operators/count.js.map