#!/bin/sh
# Counts distinct rows with errors in `map` error messages
# Usage: self {input...|<input}
grep --extended-regexp "row #: .* [0-9]+" "$@"|uniq|wc -l