Press n or j to go to the next uncovered block, b, p or k for the previous block.
export const countOccurrences = (array: unknown[], value: unknown): number => array.reduce((a: number, v: unknown) => (v === value ? a + 1 : a), 0);