updated regression.py to count failed artifacts.