/** * @short * *Count* items which satisfy a condition. * * @categories * static trigger * * @since * 0.0.2 * * @description * Returns the number of yielded items from the given iterable which * satisfy the given condition. * * When no condition is given, all items are accounted for, and the * function behaves exactly like {@link Size}. * * @parameter * iterable * Iterable * The iterable we're counting in. * * @parameter * predicate * (t: T, i: number) => boolean * The function applied to each yielded item, used to determine whether * the item will be counted or not. * * @returns * number * * @example * j.Count([1, 2, 3]) * // => 3 * * @example * j.Count([]) * // => 0 * * @example * j.Count([1, 2, 3, 4], a => a % 2 == 0) * // => 2 * * @example * j.Count(j.Integers()) * // (!) infinite loop */ export declare function Count(iterable: Iterable, predicate?: (item: T, index: number) => boolean): number;