JPL=$1
FINAL=$2
[ ! "$2" ] && echo "USAGE: $0 JPL.reg final.reg" >&2  &&  exit 1

GOOD_JPL="$(grep JPL $2 | wc -l)"
ORIG_JPL="$(grep JPL $1 | wc -l)"
TOTAL="$(expr $(grep "e" $2 | wc -l) - 3)"

echo "Good JPL algorithm detections: $GOOD_JPL"
echo "False JPL detections: $(expr $ORIG_JPL - $GOOD_JPL)"
echo "Total detections: $TOTAL"
